/**
 * Crow Nation — Custom Login Page
 * Clean, dark, premium SaaS-style login. No WP branding.
 */

/* ── Google Fonts ───────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

/* ── Reset ──────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ── Page foundation ────────────────────────────────────────────────────────── */
html,
body.login {
    background: #080d14;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0 !important;
    min-height: 100vh;
    padding: 0 !important;
}

/* Subtle radial glow in the background */
body.login::before {
    background: radial-gradient(
        ellipse 60% 50% at 50% 0%,
        rgba(23, 201, 112, 0.07) 0%,
        transparent 70%
    );
    content: '';
    height: 100vh;
    left: 0;
    pointer-events: none;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 0;
}

/* ── Layout ─────────────────────────────────────────────────────────────────── */
#login {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto !important;
    min-height: 100vh;
    padding: 0 20px !important;
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    z-index: 1;
}

/* ── Brand header ───────────────────────────────────────────────────────────── */
#login h1 {
    margin: 0 0 24px;
    padding: 0;
    text-align: center;
}

#login h1 a {
    background-image: none !important;
    color: #fff;
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    height: auto !important;
    letter-spacing: 0.2em;
    text-align: center;
    text-decoration: none;
    text-indent: 0;
    text-transform: uppercase;
    width: auto !important;
}

/* Green dot accent before the name */
#login h1 a::before {
    background: #17c970;
    border-radius: 50%;
    content: '';
    display: inline-block;
    height: 6px;
    margin-right: 10px;
    vertical-align: middle;
    width: 6px;
}

/* Tagline below the brand name */
#login h1 a::after {
    color: rgba(255, 255, 255, 0.28);
    content: 'Scouting & Draft Intelligence';
    display: block;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-top: 6px;
    text-transform: none;
}

/* ── Card ───────────────────────────────────────────────────────────────────── */
#loginform,
.login form {
    background: #0d1520 !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 12px !important;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03),
        0 24px 48px rgba(0, 0, 0, 0.4) !important;
    margin: 0 !important;
    padding: 32px 28px 28px !important;
    width: 360px !important;
}

/* Hair-line accent on top of the card */
#loginform::before {
    background: linear-gradient(90deg, transparent, rgba(23, 201, 112, 0.5), transparent);
    border-radius: 12px 12px 0 0;
    content: '';
    display: block;
    height: 1px;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

/* ── Hide all labels ────────────────────────────────────────────────────────── */
.login label,
#loginform label {
    display: none !important;
}

/* ── Inputs ─────────────────────────────────────────────────────────────────── */
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    caret-color: #17c970;
    color: #e2e8f0 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    height: 44px !important;
    letter-spacing: 0.01em;
    margin-bottom: 10px !important;
    outline: none !important;
    padding: 0 14px !important;
    transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
    width: 100% !important;
}

.login input[type="text"]:focus,
.login input[type="password"]:focus {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(23, 201, 112, 0.45) !important;
    box-shadow: 0 0 0 3px rgba(23, 201, 112, 0.08) !important;
}

.login input[type="text"]::placeholder,
.login input[type="password"]::placeholder {
    color: rgba(255, 255, 255, 0.2);
    font-size: 13px;
    font-weight: 400;
}

/* ── Hide remember me ───────────────────────────────────────────────────────── */
.login .forgetmenot {
    display: none !important;
}

/* ── Submit button ──────────────────────────────────────────────────────────── */
.login .button-primary,
#wp-submit {
    background: #17c970 !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 12px rgba(23, 201, 112, 0.22) !important;
    color: #060e0a !important;
    cursor: pointer;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    height: 44px !important;
    letter-spacing: 0.02em !important;
    margin-top: 6px;
    text-shadow: none !important;
    transition: background 0.18s, box-shadow 0.18s, transform 0.1s;
    width: 100% !important;
}

.login .button-primary:hover,
.login .button-primary:focus,
#wp-submit:hover {
    background: #1ad97a !important;
    box-shadow: 0 4px 20px rgba(23, 201, 112, 0.35) !important;
    transform: translateY(-1px);
}

.login .button-primary:active,
#wp-submit:active {
    transform: translateY(0);
}

/* ── Error / notice messages ────────────────────────────────────────────────── */
.login #login_error,
.login .message,
.login .success {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    color: rgba(226, 232, 240, 0.7) !important;
    font-family: 'Inter', sans-serif;
    font-size: 12px !important;
    line-height: 1.5;
    margin-bottom: 14px !important;
    padding: 10px 14px !important;
    width: 360px !important;
}

.login #login_error {
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: rgba(252, 165, 165, 0.85) !important;
}

/* ── Hide all nav / misc WP links ───────────────────────────────────────────── */
#backtoblog,
#nav,
.language-switcher,
.privacy-policy-page-link {
    display: none !important;
}

/* ── Inter-password view toggle (WP 5.8+) re-style ─────────────────────────── */
.login .wp-pwd {
    position: relative;
}

.login button.wp-hide-pw {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    color: rgba(255, 255, 255, 0.3) !important;
    padding: 0 10px !important;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.login button.wp-hide-pw:hover {
    color: rgba(255, 255, 255, 0.65) !important;
}
