/* ============================================================
   NYT-Inspired Login / Registration Page
   Completely overrides WordPress wp-login.php styling
   ============================================================ */

/* Reset everything */
body.login {
    background: #ffffff !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Logo / Branding */
body.login #login h1 a {
    background-image: none !important;
    text-indent: 0;
    width: auto;
    height: auto;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #121212;
    letter-spacing: -0.02em;
    margin: 0 auto;
    padding: 0;
    text-decoration: none;
}

body.login #login h1 a:hover {
    color: #121212;
}

body.login #login h1 {
    margin-bottom: 36px;
    text-align: center;
}

/* Login container */
body.login #login {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 60px 20px 40px;
    flex: 1;
}

/* Form wrapper — remove WP box styling */
body.login #loginform,
body.login #registerform,
body.login #lostpasswordform {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* "Log in or create an account" heading */
body.login .message,
body.login #login_error,
body.login .success {
    background: transparent !important;
    border: none !important;
    border-left: none !important;
    box-shadow: none !important;
    padding: 12px 0 !important;
    margin: 0 0 16px 0 !important;
    font-size: 0.85rem;
    text-align: center;
    color: #333;
}

body.login #login_error {
    color: #c62828 !important;
    border-left: 3px solid #c62828 !important;
    padding: 12px 16px !important;
    text-align: left;
}

/* Labels */
body.login label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #121212;
    display: block;
    margin-bottom: 6px;
}

/* Input fields */
body.login input[type="text"],
body.login input[type="email"],
body.login input[type="password"],
body.login input[type="tel"] {
    width: 100% !important;
    padding: 14px 16px !important;
    font-size: 1rem !important;
    border: 1px solid #ccc !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #121212 !important;
    box-shadow: none !important;
    outline: none !important;
    margin-bottom: 16px !important;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

body.login input[type="text"]:focus,
body.login input[type="email"]:focus,
body.login input[type="password"]:focus {
    border-color: #121212 !important;
    box-shadow: none !important;
}

/* Submit button */
body.login .submit input[type="submit"],
body.login #wp-submit {
    width: 100% !important;
    padding: 14px 24px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif !important;
    background: #121212 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    cursor: pointer;
    text-transform: none !important;
    letter-spacing: 0;
    transition: background 0.15s ease;
    margin-top: 8px;
    box-sizing: border-box;
}

body.login .submit input[type="submit"]:hover,
body.login #wp-submit:hover {
    background: #333 !important;
}

/* Submit button container */
body.login .submit {
    margin-top: 0;
}

/* Remember me */
body.login .forgetmenot {
    margin-bottom: 16px;
}

body.login .forgetmenot label {
    font-size: 0.8rem;
    font-weight: 400;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

body.login .forgetmenot input[type="checkbox"] {
    margin: 0;
}

/* Navigation links (Register / Lost Password) */
body.login #nav,
body.login #backtoblog {
    text-align: center;
    padding: 0;
    margin: 20px 0 0 0;
}

body.login #nav a,
body.login #backtoblog a {
    font-size: 0.8rem;
    color: #121212;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(18, 18, 18, 0.3);
    transition: text-decoration-color 0.2s ease;
}

body.login #nav a:hover,
body.login #backtoblog a:hover {
    text-decoration-color: #121212;
    color: #121212;
}

/* Divider between nav links */
body.login #nav {
    border-top: 1px solid #e2e2e2;
    padding-top: 20px;
    margin-top: 24px;
}

/* Terms text — injected via custom hook */
.hereco-login-terms {
    text-align: center;
    font-size: 0.75rem;
    color: #666;
    margin: 24px 0 0;
    line-height: 1.5;
}

.hereco-login-terms a {
    color: #121212;
    text-decoration: underline;
}

/* Footer on login page */
.hereco-login-footer {
    text-align: center;
    padding: 24px 20px;
    font-size: 0.7rem;
    color: #999;
    border-top: 1px solid #e2e2e2;
}

.hereco-login-footer a {
    color: #666;
    text-decoration: none;
    margin: 0 8px;
}

.hereco-login-footer a:hover {
    text-decoration: underline;
}

/* Hide WP logo branding below */
body.login .privacy-policy-page-link,
body.login .language-switcher {
    display: none !important;
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
    body.login #login {
        padding: 40px 16px 32px;
    }

    body.login #login h1 a {
        font-size: 1.6rem;
    }
}
