/* --- Login Page Styles --- */
/* Clean login page matching landing page style (no header) */

/* RESET: Fix WordPress login page layout completely */
html, body.login {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    overflow-x: hidden !important;
    position: relative !important;
}

body.login {
    /* background-image is set dynamically via inline style in PHP */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    min-height: 100vh !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Hide the default WordPress logo from login page */
body.login #login h1 {
    display: none !important;
}

/* Logo Section - matching landing page */
.login-logo-section {
    text-align: center;
    margin-bottom: 20px;
}

.login-logo-section .landing-logo-capsule {
    display: inline-block;
    background: #FFE02B;
    padding: 5px 10px;
    border-radius: 50px;
    margin-bottom: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.login-logo-section .landing-logo-capsule img {
    height: 50px;
    width: auto;
    display: block;
}

.login-logo-section .private-alpha-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
}

/* Fix the login container */
body.login #login {
    width: 100% !important;
    max-width: 320px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
    box-sizing: border-box !important;
    position: relative !important;
}

/* Logo container - Hidden since we have our own logo capsule */
#login h1 a, .login h1 a {
    display: none !important;
}

/* Form Container (Login, Register, Lost Password) */
.login #loginform,
.login #registerform,
.login #lostpasswordform {
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.13);
    padding: 26px 24px 34px;
    border-radius: 3px;
}

/* Login messages (error, message, success) */
.login #login_error, .login .message, .login .success {
    border-left: 4px solid #24B8F4;
    padding: 12px;
    margin-left: 0;
    margin-bottom: 20px;
    background-color: #fff;
    box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
}
.login #login_error {
    border-left-color: #dc3232;
}
.login .message {
    border-left-color: #00a0d2;
}
.login .success {
    border-left-color: #46b450;
}

/* Submit Button */
.wp-core-ui .button-primary {
    background: #24B8F4 !important;
    border-color: #24B8F4 !important;
    color: #ffffff !important;
    box-shadow: none !important;
    text-shadow: none !important;
    height: auto;
    line-height: normal;
    padding: 10px 15px;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

/* Button Hover/Focus */
.wp-core-ui .button-primary:hover,
.wp-core-ui .button-primary:focus {
    background: #1ea2dc !important;
    border-color: #1ea2dc !important;
    color: #ffffff !important;
}

/* Login form labels */
.login label {
    font-weight: bold;
    color: #555;
}

/* Links below form (Register, Lost Password, Back to Blog) */
.login #nav, .login #backtoblog {
    text-align: center;
    padding: 0 24px;
}
.login #nav a, .login #backtoblog a {
    color: #333 !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    padding: 4px 12px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    display: inline-block !important;
    margin: 4px 0 !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}
.login #nav a:hover, .login #backtoblog a:hover {
     color: #24B8F4 !important;
     background-color: rgba(255, 255, 255, 1) !important;
     text-decoration: none !important;
     transform: translateY(-1px) !important;
     box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Mobile responsive adjustments */
@media screen and (max-width: 768px) {
    .login-logo-section .landing-logo-capsule {
        padding: 10px 20px;
    }

    .login-logo-section .landing-logo-capsule img {
        height: 32px;
    }

    .login-logo-section .private-alpha-label {
        margin-top: 4px;
    }
}

/* Very small screens */
@media screen and (max-width: 400px) {
    body.login #login {
        max-width: 280px !important;
        padding: 0 16px !important;
    }
}

/* "Remember Me" is redundant — every login is remembered (see includes/login.php,
   safaroto_always_remember_login). Hide the core checkbox rather than leave an
   unchecked box that implies sessions are short by default. */
body.login .forgetmenot {
    display: none !important;
}
