/* Wong Patissier — Custom Login Page */

body.login {
    background: #0d0b0e;
    font-family: 'Poppins', -apple-system, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Logo */
.login h1 a {
    background-image: url('../images/logo-horizontal-light.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    width: 260px;
    height: 60px;
    margin-bottom: 2rem;
}

/* Form container */
.login form {
    background: rgba(26, 23, 27, 0.6);
    border: 1px solid rgba(146, 112, 60, 0.2);
    border-radius: 12px;
    padding: 2rem 2.5rem;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

#loginform {
    margin-top: 0;
}

/* Labels */
.login label {
    color: #e0ddd8;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Inputs */
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
    background: rgba(13, 11, 14, 0.8);
    border: 1px solid rgba(146, 112, 60, 0.3);
    border-radius: 8px;
    color: #e0ddd8;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease;
    box-shadow: none;
}

.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus {
    border-color: #92703C;
    box-shadow: 0 0 0 1px rgba(146, 112, 60, 0.3);
    outline: none;
    background: rgba(13, 11, 14, 0.9);
}

/* Remember me checkbox */
.login .forgetmenot label {
    color: #8a8580;
    font-size: 0.8rem;
    text-transform: none;
}

.login input[type="checkbox"] {
    background: rgba(13, 11, 14, 0.8);
    border: 1px solid rgba(146, 112, 60, 0.3);
    border-radius: 4px;
}

.login input[type="checkbox"]:checked {
    background: #92703C;
    border-color: #92703C;
}

/* Checkbox row — full width, no float */
.login .forgetmenot {
    float: none !important;
    margin-bottom: 0;
}

/* Submit row — full width */
.login .submit {
    clear: both;
    margin-top: 1.5rem;
}

/* Submit button — full width */
.login .button-primary {
    width: 100% !important;
    background: #92703C !important;
    border: none !important;
    border-radius: 8px !important;
    color: #fff !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    padding: 0.85rem 1rem !important;
    text-shadow: none !important;
    box-shadow: none !important;
    transition: background 0.3s ease !important;
    cursor: pointer;
    float: none !important;
    text-align: center !important;
}

.login .button-primary:hover,
.login .button-primary:focus {
    background: #7a5d32 !important;
    box-shadow: none !important;
}

/* Registration helper text */
.login #reg_passmail {
    color: #8a8580;
    font-size: 0.8rem;
}

/* Indicator description */
.login .indicator-hint {
    color: #8a8580;
    font-size: 0.8rem;
}

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

/* Links below form */
.login #nav,
.login #backtoblog {
    text-align: center;
}

.login #nav a,
.login #backtoblog a {
    color: #8a8580;
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Error / messages */
.login .message,
.login .success {
    background: rgba(26, 23, 27, 0.6);
    border-left: 4px solid #92703C;
    color: #e0ddd8;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    box-shadow: none;
    margin-bottom: 1rem;
}

.login #login_error {
    background: rgba(26, 23, 27, 0.6);
    border-left: 4px solid #e74c3c;
    color: #e0ddd8;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    box-shadow: none;
}

.login #login_error a {
    color: #DEC47F;
}

/* Password visibility toggle */
.login .wp-pwd .button.wp-hide-pw {
    color: #8a8580;
}

.login .wp-pwd .button.wp-hide-pw:hover {
    color: #DEC47F;
}

.login .wp-pwd .button.wp-hide-pw:focus {
    box-shadow: none;
    outline: none;
    color: #DEC47F;
}

/* Privacy policy link */
.login .privacy-policy-page-link {
    text-align: center;
}

.login .privacy-policy-page-link a {
    color: #8a8580;
    font-size: 0.75rem;
}

.login .privacy-policy-page-link a:hover {
    color: #DEC47F;
}

/* #login wrapper */
#login {
    width: 380px;
    padding: 0 2rem;
}

@media (max-width: 480px) {
    #login {
        width: 100%;
        padding: 0 1.5rem;
    }

    .login h1 a {
        width: 200px;
        height: 48px;
    }

    .login form {
        padding: 1.5rem;
    }
}
