@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #020617;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    position: relative;
    color: #f8fafc;
}

/* Background Ambient Glows */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    opacity: 0.4;
}
.glow1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: #6366f1;
}
.glow2 {
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: #d946ef;
}

/* Container */
.container {
    background-color: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    width: 768px;
    max-width: 100%;
    min-height: 520px;
    z-index: 10;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.logo-icon {
    font-size: 24px;
    color: #a855f7;
}
.brand-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(to right, #a855f7, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.container h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.container p {
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0.3px;
    margin: 20px 0;
    color: #94a3b8;
}

.container span {
    font-size: 12px;
    color: #64748b;
}

.container a {
    color: #94a3b8;
    font-size: 13px;
    text-decoration: none;
    margin: 15px 0 10px;
    transition: color 0.3s;
}
.container a:hover {
    color: #a855f7;
}

/* Buttons */
.container button, .modal-buttons button {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: #fff;
    font-size: 13px;
    padding: 12px 40px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.container button:hover, .modal-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}
.container button:active {
    transform: translateY(0);
}
.container button.hidden {
    background: transparent;
    border: 2px solid #fff;
}
.container button.hidden:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

/* Forms */
.container form {
    background-color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    height: 100%;
}

.container input {
    background-color: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    margin: 8px 0;
    padding: 12px 15px;
    font-size: 14px;
    border-radius: 8px;
    width: 100%;
    outline: none;
    transition: border 0.3s;
}
.container input:focus {
    border-color: #a855f7;
}

.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

.sign-in {
    left: 0;
    width: 50%;
    z-index: 2;
}
.container.active .sign-in {
    transform: translateX(100%);
}

.sign-up {
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}
.container.active .sign-up {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: move 0.6s;
}

@keyframes move {
    0%, 49.99% {
        opacity: 0;
        z-index: 1;
    }
    50%, 100% {
        opacity: 1;
        z-index: 5;
    }
}

/* Social Icons */
.social-icons {
    margin: 15px 0;
}
.social-icons a {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #1e293b;
    border-radius: 12px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
    width: 40px;
    height: 40px;
    color: #f8fafc;
    transition: background 0.3s, border-color 0.3s;
}
.social-icons a:hover {
    background-color: #2563eb;
    border-color: #3b82f6;
}

/* Toggle Panel Layout */
.toggle-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: all 0.6s ease-in-out;
    border-radius: 150px 0 0 100px;
    z-index: 1000;
}
.container.active .toggle-container {
    transform: translateX(-100%);
    border-radius: 0 150px 100px 0;
}

.toggle {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    height: 100%;
    color: #fff;
    position: relative;
    left: -100%;
    width: 200%;
    transform: translateX(0);
    transition: all 0.6s ease-in-out;
}
.container.active .toggle {
    transform: translateX(50%);
}

.toggle-panel {
    position: absolute;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 30px;
    text-align: center;
    top: 0;
    transform: translateX(0);
    transition: all 0.6s ease-in-out;
}

.toggle-left {
    transform: translateX(-200%);
}
.container.active .toggle-left {
    transform: translateX(0);
}

.toggle-right {
    right: 0;
    transform: translateX(0);
}
.container.active .toggle-right {
    transform: translateX(200%);
}

/* Forgot Password Modal Styling */
.forgot-password-modal {
    display: none; /* Dikontrol via JS */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.forgot-content {
    background-color: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    width: 400px;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.forgot-content h2 {
    margin-bottom: 10px;
    font-weight: 700;
}

.forgot-content p {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 20px;
}

.forgot-content input {
    background-color: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    padding: 12px 15px;
    border-radius: 8px;
    width: 100%;
    outline: none;
    margin-bottom: 15px;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.modal-buttons .btn-secondary {
    background: #1e293b;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.modal-buttons .btn-secondary:hover {
    background: #334155;
    color: #fff;
    box-shadow: none;
}