/**
 * Classic TV and Film — Login & Password Reset Page
 * Replaces the default WordPress login styles with the site's
 * dark cinema aesthetic. Covers wp-login.php in all states:
 * login, lost password, reset password, register.
 */

/* ── Page background ── */
body.login {
    background: #0d0d0d;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Subtle dark gradient top-to-bottom */
body.login::after {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(201,168,76,0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ── Logo: replace WP icon with site name ── */
#login h1,
.login h1 {
    margin-bottom: 20px;
}

#login h1 a,
.login h1 a {
    /* Hide WP logo image */
    background-image: none !important;
    background-size: 0 !important;

    /* Site name typography */
    display: block;
    width: auto;
    height: auto;
    text-indent: 0;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 26px;
    font-weight: normal;
    line-height: 1.3;
    color: #c9a84c;
    text-shadow: none;
    letter-spacing: 0.04em;
    text-align: center;
    padding: 0;
}

/* Classic camera icon before site name */
#login h1 a::before,
.login h1 a::before {
    content: '🎬  ';
    font-style: normal;
}

/* ── Form container ── */
#login {
    width: 340px;
    padding: 0;
    position: relative;
    z-index: 1;
}

#loginform,
#lostpasswordform,
#resetpassform,
.login form {
    background: #1a1a1a;
    border: 1px solid #2d2d2d;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6), 0 1px 0 rgba(255,255,255,0.04) inset;
    padding: 28px 28px 24px;
    margin-top: 0;
}

/* ── Labels ── */
.login label {
    color: #999;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
}

/* ── Inputs ── */
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
    background: #111 !important;
    border: 1px solid #333 !important;
    border-radius: 5px;
    color: #fff !important;
    font-size: 15px;
    padding: 10px 12px;
    height: auto;
    box-shadow: none !important;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}

.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus {
    border-color: #c9a84c !important;
    box-shadow: 0 0 0 2px rgba(201,168,76,0.15) !important;
    outline: none;
    background: #111 !important;
    color: #fff !important;
}

/* Eye toggle on password field */
.login .wp-pwd {
    position: relative;
}

.login button.wp-hide-pw {
    background: transparent;
    border: none;
    color: #666;
    padding: 0;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

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

/* ── Primary button (Log In / Save Password) ── */
.login .button-primary,
.login input[type="submit"].button-primary,
#loginform .button-primary,
#resetpassform .button-primary {
    background: #c9a84c !important;
    border: none !important;
    border-radius: 5px;
    color: #0d0d0d !important;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: none !important;
    padding: 12px 20px;
    height: auto;
    width: 100%;
    box-shadow: none !important;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
    display: block;
    box-sizing: border-box;
}

.login .button-primary:hover,
.login input[type="submit"].button-primary:hover {
    background: #b8973e !important;
    color: #0d0d0d !important;
}

/* ── Generate Password secondary button ── */
.login .button:not(.button-primary),
.login .wp-generate-pw.button {
    background: transparent !important;
    border: 1px solid #444 !important;
    color: #aaa !important;
    border-radius: 5px;
    font-size: 12px;
    padding: 8px 14px;
    height: auto;
    box-shadow: none !important;
    text-shadow: none !important;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    font-family: inherit;
}

.login .button:not(.button-primary):hover {
    border-color: #c9a84c !important;
    color: #c9a84c !important;
    background: transparent !important;
}

/* ── Password strength bar ── */
#pass-strength-result {
    border-radius: 4px;
    border: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 6px 10px;
    margin-top: 6px;
    background: #222;
    color: #666;
}

#pass-strength-result.strong,
#pass-strength-result.good    { background: rgba(76,175,80,0.15); color: #4caf50; }
#pass-strength-result.bad     { background: rgba(244,67,54,0.15); color: #f44336; }
#pass-strength-result.short   { background: rgba(255,152,0,0.15);  color: #ff9800; }

/* ── "Remember Me" checkbox ── */
.login .forgetmenot label {
    color: #666;
    font-size: 12px;
    letter-spacing: 0;
    text-transform: none;
}

.login input[type="checkbox"] {
    accent-color: #c9a84c;
}

/* ── Links ── */
.login a {
    color: #c9a84c;
    text-decoration: none;
}

.login a:hover {
    color: #d4b86a;
    text-decoration: underline;
}

/* Sub-links below form */
#nav,
#backtoblog {
    text-align: center;
    margin-top: 16px;
}

#nav a,
#backtoblog a {
    color: #666 !important;
    font-size: 13px;
}

#nav a:hover,
#backtoblog a:hover {
    color: #c9a84c !important;
    text-decoration: none;
}

/* ── Info / error messages ── */
.login .message,
.login p.message {
    background: rgba(201,168,76,0.08);
    border-left: 3px solid #c9a84c;
    border-radius: 0 5px 5px 0;
    color: #aaa;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 16px;
}

.login #login_error,
.login .error {
    background: rgba(244,67,54,0.08);
    border-left: 3px solid #f44336;
    border-radius: 0 5px 5px 0;
    color: #f44336;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 16px;
    box-shadow: none;
}

/* ── Privacy policy link ── */
.login #privacy-policy-page-link {
    text-align: center;
    margin-top: 20px;
}

.login #privacy-policy-page-link a {
    color: #444;
    font-size: 12px;
}

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