/* ==========================================================================
   CUSTOM LOGIN PAGE — Split Layout
   Liceul "Ștefan Procopiu"
   Left: branding panel | Right: login form
   ========================================================================== */

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

/* ── Base reset ── */
body.login {
    background: #f5f7fa;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* ── Split wrapper ── */
.login-split {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ══════════════════════════════════════
   LEFT PANEL — Branding
   ══════════════════════════════════════ */
.login-branding {
    width: 45%;
    min-height: 100vh;
    background: linear-gradient(160deg, #0f2439 0%, #1b3a5c 50%, #2a5080 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px;
    position: relative;
    overflow: hidden;
}

/* Decorative glow */
.login-branding::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(232, 168, 56, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.login-branding::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(42, 80, 128, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Logo */
.login-branding__logo {
    height: 70px;
    width: auto;
    display: block;
    position: relative;
    z-index: 1;
}

/* Info block */
.login-branding__content {
    display: flex;
    flex-direction: column;
    gap: 48px;
    flex: 1;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.login-branding__info {
    max-width: 600px;
}

.login-branding__title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #e8a838;
    margin: 0 0 16px 0;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8125rem;
}

.login-branding__text {
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 12px 0;
    font-weight: 400;
}

.login-branding__text:last-child {
    margin-bottom: 0;
}

/* Footer */
.login-branding__footer {
    position: relative;
    z-index: 1;
}

.login-branding__footer p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    margin: 0;
}

/* ══════════════════════════════════════
   RIGHT PANEL — Login Form
   ══════════════════════════════════════ */
#login {
    width: 55%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 60px;
    background: #f5f7fa;
    min-height: 100vh;
}

/* Hide the default WP logo — we have ours on the left panel */
#login h1 {
    display: none;
}

/* Login form */
#loginform,
#lostpasswordform,
#registerform {
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 16px;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.06),
        0 1px 4px rgba(0, 0, 0, 0.04);
    padding: 36px 40px !important;
    width: 100%;
    max-width: 400px;
    margin: 0;
}

/* Form field groups spacing */
#loginform p,
#loginform .user-pass-wrap,
#lostpasswordform p,
#registerform p {
    margin: 0 0 28px 0 !important;
}

#loginform p:last-of-type,
#lostpasswordform p:last-of-type,
#registerform p:last-of-type {
    margin-bottom: 0 !important;
}

/* Form heading - add via CSS */
#loginform::before {
    content: 'Autentificare';
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1b3a5c;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

#lostpasswordform::before {
    content: 'Resetare parolă';
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1b3a5c;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

#registerform::before {
    content: 'Înregistrare';
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1b3a5c;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

/* Labels */
#loginform label,
#lostpasswordform label,
#registerform label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1b3a5c;
    letter-spacing: 0.01em;
    display: block;
    margin-bottom: 6px;
}

/* Input fields */
#loginform input[type="text"],
#loginform input[type="password"],
#lostpasswordform input[type="text"],
#registerform input[type="text"],
#registerform input[type="email"] {
    background: #f8f9fb;
    border: 2px solid #e2e6ed;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.9375rem;
    font-family: 'Inter', sans-serif;
    color: #1b3a5c;
    transition: all 0.2s ease;
    box-shadow: none;
    width: 100%;
    margin-top: 2px;
    margin-bottom: 0;
}

#loginform input[type="text"]:focus,
#loginform input[type="password"]:focus,
#lostpasswordform input[type="text"]:focus,
#registerform input[type="text"]:focus,
#registerform input[type="email"]:focus {
    border-color: #e8a838;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(232, 168, 56, 0.15);
    outline: none;
}

/* Remember me checkbox */
.forgetmenot {
    margin-top: 16px !important;
    margin-bottom: 0 !important;
}

.forgetmenot label {
    font-size: 0.8125rem !important;
    color: #5a6b80 !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

/* Submit button */
#wp-submit {
    background: linear-gradient(135deg, #e8a838 0%, #d4922e 100%);
    border: none;
    border-radius: 10px;
    padding: 12px 28px;
    font-size: 0.9375rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    color: #fff;
    text-shadow: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(232, 168, 56, 0.25);
    width: 100%;
    height: auto;
    line-height: 1.5;
    margin-top: 4px;
}

#wp-submit:hover {
    background: linear-gradient(135deg, #d4922e 0%, #c17f20 100%);
    box-shadow: 0 6px 20px rgba(232, 168, 56, 0.35);
    transform: translateY(-1px);
}

#wp-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(232, 168, 56, 0.25);
}

/* Navigation links */
#login #nav,
#login #backtoblog {
    text-align: center;
    margin-top: 16px;
    max-width: 400px;
    width: 100%;
}

#login #nav a,
#login #backtoblog a {
    color: #5a6b80;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

#login #nav a:hover,
#login #backtoblog a:hover {
    color: #e8a838;
}

#login #nav {
    color: #c0c8d4;
}

/* Error / success messages */
.login .message,
.login .success {
    border-left: 4px solid #e8a838;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 12px 16px;
    font-size: 0.8125rem;
    color: #1b3a5c;
    margin-bottom: 20px;
    max-width: 400px;
    width: 100%;
}

#login_error {
    border-left: 4px solid #dc3545;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 12px 16px;
    font-size: 0.8125rem;
    color: #721c24;
    margin-bottom: 20px;
    max-width: 400px;
    width: 100%;
}

#login_error a {
    color: #dc3545;
    font-weight: 600;
}

/* Hide language switcher */
.language-switcher {
    display: none;
}

/* Privacy policy */
.privacy-policy-page-link {
    text-align: center;
    margin-top: 12px;
    max-width: 400px;
}

.privacy-policy-page-link a {
    color: #a0aab8 !important;
    font-size: 0.75rem;
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 900px) {
    .login-split {
        flex-direction: column;
    }

    .login-branding {
        width: 100%;
        min-height: auto;
        padding: 32px 24px;
    }

    .login-branding__content {
        gap: 24px;
    }

    .login-branding__logo {
        height: 50px;
    }

    .login-branding__text {
        font-size: 0.875rem;
    }

    #login {
        width: 100%;
        min-height: auto;
        padding: 32px 24px;
    }

    #loginform,
    #lostpasswordform,
    #registerform {
        padding: 28px 24px !important;
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .login-branding {
        padding: 24px 20px;
    }

    .login-branding__logo {
        height: 40px;
        max-width: 180px;
        object-fit: contain;
    }

    .login-branding__content {
        gap: 16px;
    }

    .login-branding__text {
        font-size: 0.8125rem;
    }

    .login-branding__footer p {
        font-size: 0.6875rem;
    }

    .login-branding::before,
    .login-branding::after {
        display: none;
    }

    #login {
        padding: 28px 24px;
        justify-content: flex-start;
    }

    #loginform,
    #lostpasswordform,
    #registerform {
        padding: 24px 20px !important;
        border-radius: 12px;
        max-width: 100%;
    }

    #loginform::before,
    #lostpasswordform::before,
    #registerform::before {
        font-size: 1.25rem;
        margin-bottom: 20px;
    }

    #login #nav,
    #login #backtoblog {
        max-width: 100%;
    }

    .login .message,
    .login .success,
    #login_error {
        max-width: 100%;
    }
}

