/* ===== AUTH BASE ===== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;                 /* <- key */
    background: #1a2230;              /* fallback */
}
.auth-page {
    width: 100%;
    min-height: 100vh;      /* use vh on desktop */
    align-items: stretch;   /* make both columns full height */
    background: linear-gradient(180deg, #1a2230, #344767) fixed;
    display: flex;
    /*font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;*/
    font-family: Bahnschrift, sans-serif;
    padding: 0;
    margin: 0;
}

/* ===== LEFT PANEL ===== */
.auth-left {
    height: 100%;
    min-height: 100vh;
    flex: 1;
    padding: 60px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: transparent;
    animation: fadein 0.8s ease-in-out;
    will-change: transform;
    overflow-y: auto;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 40px;
}

.auth-logo img {
    width: 37px;
    height: 37px;
}

.auth-left a{
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.auth-left h1 {
    font-size: 34px;
    line-height: 1.2;
    margin-bottom: 16px;
    font-family: 'Indie Flower', cursive;
    font-weight: 700;
}

.auth-left p {
    font-size: 15px;
    opacity: 0.85;
    margin-bottom: 30px;
    font-weight: 600;
}

.auth-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 12px;
    opacity: 0.9;
    font-weight: 600;

}

/* Optional preview image */
.auth-preview {
    margin-top: 25px;
    max-width: 580px;
    max-height: 380px;
    animation: fadein 0.8s ease-in-out;
}

.auth-preview img {
    max-width: 100%;
    max-height: 280px;
    min-width: 400px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

/* ===== RIGHT PANEL ===== */
.auth-right {
    height: 100%;
    min-height: 100vh;
    width: 520px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    overflow-y: auto;
}

.auth-card {
    width: 100%;
    max-width: 360px;
    animation: fadein 0.8s ease-in-out;
}

.auth-card h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #253249;
}

.auth-card p {
    font-size: 13px;
    color: #415068;
    margin-bottom: 24px;
}

/* ===== FORM ===== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-form input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
    font-weight: 600;
}
.auth-form input::placeholder {
    font-weight: 500;
}

.auth-form input:focus {
    outline: none;
    border-color: #334155;
}

/* ===== BUTTON ===== */
.auth-btn {
    margin-top: 10px;
    padding: 12px;
    border-radius: 999px;
    border: none;
    background: #253249;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.auth-btn:hover {
    background: #192232;
}

/* ===== FOOTER LINKS ===== */
.auth-footer {
    margin-top: 16px;
    font-size: 13px;
    text-align: center;
    color: #475569;

}

.auth-footer a {
    color: #253249;
    font-weight: 700;
    text-decoration: none;
}

.auth-hint {
    margin-top: 18px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-align: center;
}

.link-btn {
    background: none;
    border: none;
    padding: 0;
    color: #344767;
    font-size: 14px;
    cursor: pointer;
}

.link-btn:hover {
    text-decoration: underline;
}
.auth-modal {
    background: #1e2433;
    color: #fff;
    border-radius: 14px;
}

.auth-modal .modal-title {
    color: #fff;
}

.auth-modal .modal-text {
    font-size: 14px;
    color: #cfd6e6;
    margin-bottom: 12px;
}

.auth-modal input {
    background: #2a3147;
    border: 1px solid #3a4260;
    color: #fff;
}

.auth-modal input::placeholder {
    color: #9aa4c7;
}

.success-text {
    color: #4ade80;
    font-size: 13px;
    margin-top: 8px;
}

.error-text {
    color: #f87171;
    font-size: 13px;
    margin-top: 8px;
}
.modal-content {
    background: #1f2937; /* dark slate */
    color: #e5e7eb;
    border-radius: 12px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.modal-footer {
    border-top: 1px solid rgba(255,255,255,0.1);
}

.btn-close {
    filter: invert(1);
}

.primary-btn {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    background: #344767;
    padding: 9px 35px;
    font-weight: bold;
}

.primary-btn:hover {
    background: #5a77a8;
}

.ghost-btn {
    background: transparent;
    color: #cbd5f5;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 9px 35px;
    font-weight: bold;
}

.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

#logo-right{
    display: none;
}


@keyframes fadein {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}



@media (max-width: 900px) {
    .auth-left {
        display: none;
    }
    #logo-right {
        display: flex;
    }
    .auth-right {
        width: 100%;
    }

    .auth-logo{
        top: 7%;
        position: absolute;
        flex-direction: column;
    }
    .auth-logo span{
        color: #253249;
    }
}
