/* ============================================================================
   FITCOACH STARTER — WP-LOGIN OVERRIDE
   Applies to: lostpassword, resetpass, rp, confirmaction
   Matches the landing page futuristic dark aesthetic
   ============================================================================ */

/* ─── BASE ─── */
html, body.login {
    margin: 0 !important;
    padding: 0 !important;
    background: #050607 !important;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    overflow-x: hidden;
}

/* ─── PARTICLE CANVAS (injected via JS) ─── */
#fcs-login-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ─── GRID BG (injected via JS) ─── */
#fcs-login-grid-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(166, 234, 42, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(166, 234, 42, .03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 10%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 10%, transparent 70%);
}

/* ─── ORB GLOW (injected via JS) ─── */
.fcs-wp-orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(90px);
    z-index: 0;
}
.fcs-wp-orb-1 {
    width: 400px; height: 400px;
    background: rgba(166, 234, 42, .06);
    top: -120px; right: -100px;
    animation: fcsOrbDrift 8s ease-in-out infinite;
}
.fcs-wp-orb-2 {
    width: 300px; height: 300px;
    background: rgba(139, 92, 246, .05);
    bottom: -100px; left: -80px;
    animation: fcsOrbDrift 10s ease-in-out infinite reverse;
}
@keyframes fcsOrbDrift {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -20px); }
    66% { transform: translate(-20px, 30px); }
}

/* ─── HIDE WP DEFAULTS ─── */
#wpadminbar { display: none !important; }
body.login { margin-top: 0 !important; }

/* ─── WRAPPER ─── */
#login {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 120px 24px 60px !important;
    animation: fcsCardUp .7s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes fcsCardUp {
    from { opacity: 0; transform: translateY(30px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── LOGO ─── */
#login h1 {
    margin-bottom: 8px !important;
    text-align: center;
}

#login h1 a {
    background-position: center center !important;
    background-repeat: no-repeat !important;
    display: block !important;
    margin: 0 auto 6px !important;
    filter: drop-shadow(0 0 20px rgba(166, 234, 42, .2));
    animation: fcsLogoPulse 3s ease-in-out infinite;
    transition: transform .3s ease;
}
#login h1 a:hover {
    transform: scale(1.04);
}

@keyframes fcsLogoPulse {
    0%, 100% { filter: drop-shadow(0 0 14px rgba(166, 234, 42, .12)); }
    50%      { filter: drop-shadow(0 0 26px rgba(166, 234, 42, .28)); }
}

/* ─── FORM CARD ─── */
.login form,
#loginform,
#lostpasswordform,
#resetpassform {
    background: rgba(17, 22, 28, .6) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(166, 234, 42, .12) !important;
    border-radius: 20px !important;
    padding: 32px !important;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, .4),
        0 0 80px rgba(166, 234, 42, .03),
        inset 0 1px 0 rgba(255, 255, 255, .05) !important;
    margin-top: 12px !important;
    position: relative;
    overflow: hidden;
    transition: border-color .4s ease, box-shadow .4s ease;
}

.login form:hover,
.login form:focus-within {
    border-color: rgba(166, 234, 42, .2) !important;
    box-shadow:
        0 24px 70px rgba(0, 0, 0, .45),
        0 0 100px rgba(166, 234, 42, .05),
        inset 0 1px 0 rgba(255, 255, 255, .06) !important;
}

/* Gradient border on hover */
.login form::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 21px;
    background: linear-gradient(135deg, rgba(166, 234, 42, .12) 0%, transparent 50%, rgba(139, 92, 246, .08) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
}
.login form:hover::before {
    opacity: 1;
}

/* ─── LABELS ─── */
.login form label,
.login label {
    color: #C9D1D9 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    font-family: 'Inter', sans-serif !important;
    letter-spacing: .3px;
    display: block;
    margin-bottom: 6px !important;
}

/* ─── INPUTS ─── */
.login form .input,
.login form input[type="text"],
.login form input[type="email"],
.login form input[type="password"],
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
    width: 100% !important;
    padding: 13px 14px 13px 42px !important;
    background: rgba(23, 29, 36, .8) !important;
    border: 1px solid rgba(255, 255, 255, .08) !important;
    border-radius: 11px !important;
    color: #fff !important;
    font-size: 14px !important;
    font-family: 'Inter', sans-serif !important;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    box-shadow: none !important;
    margin-bottom: 4px !important;
    height: auto !important;
    line-height: 1.4 !important;
}

.login form .input::placeholder,
.login form input::placeholder {
    color: #8B949E !important;
}

.login form .input:focus,
.login form input[type="text"]:focus,
.login form input[type="email"]:focus,
.login form input[type="password"]:focus {
    outline: none !important;
    border-color: #A6EA2A !important;
    background: rgba(23, 29, 36, 1) !important;
    box-shadow: 0 0 0 3px rgba(166, 234, 42, .1), 0 0 20px rgba(166, 234, 42, .04) !important;
}

/* ─── INPUT GROUPS (add icon space) ─── */
.login form p {
    position: relative;
    margin-bottom: 14px !important;
}

/* ─── SUBMIT BUTTON ─── */
.login form .submit,
.login .submit {
    margin-top: 8px !important;
}

.login form .button-primary,
.login .button-primary,
#wp-submit {
    width: 100% !important;
    padding: 14px 24px !important;
    background: linear-gradient(135deg, #A6EA2A 0%, #8FD11B 100%) !important;
    border: none !important;
    border-radius: 11px !important;
    color: #050607 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    font-family: 'Inter', sans-serif !important;
    cursor: pointer;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 8px 28px rgba(166, 234, 42, .2) !important;
    text-shadow: none !important;
    height: auto !important;
    line-height: 1.4 !important;
    position: relative;
    overflow: hidden;
    float: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin: 0 !important;
    gap: 0 !important;
}

.login form .button-primary:hover,
#wp-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 38px rgba(166, 234, 42, .32) !important;
    background: linear-gradient(135deg, #B9F53A 0%, #A6EA2A 100%) !important;
}

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

/* Shimmer on button */
.login form .button-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
    animation: fcsShimmer 3s ease-in-out infinite;
}
@keyframes fcsShimmer {
    0%  { left: -100%; }
    50% { left: 100%; }
    100%{ left: 100%; }
}

/* ─── MESSAGES ─── */
.login .message,
.login #login_error,
.login .success {
    border-radius: 12px !important;
    border: none !important;
    padding: 14px 18px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    font-family: 'Inter', sans-serif !important;
    line-height: 1.6 !important;
    margin: 0 0 16px !important;
    animation: fcsSlideIn .4s ease both;
}

.login .message {
    background: rgba(61, 220, 132, .08) !important;
    border-left: 3px solid #3DDC84 !important;
    color: #3DDC84 !important;
    box-shadow: 0 4px 16px rgba(61, 220, 132, .06) !important;
}

.login #login_error {
    background: rgba(255, 92, 92, .08) !important;
    border-left: 3px solid #FF5C5C !important;
    color: #FF5C5C !important;
    box-shadow: 0 4px 16px rgba(255, 92, 92, .06) !important;
}

.login .success {
    background: rgba(61, 220, 132, .08) !important;
    border-left: 3px solid #3DDC84 !important;
    color: #3DDC84 !important;
}

.login .message a,
.login #login_error a,
.login .success a {
    color: inherit !important;
    text-decoration: underline !important;
}

@keyframes fcsSlideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── NAVIGATION LINKS ─── */
#nav, #backtoblog {
    text-align: center !important;
    padding: 0 !important;
    margin: 18px 0 0 !important;
}

#nav a, #backtoblog a {
    color: #8B949E !important;
    font-size: 13px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    transition: all .3s ease;
    text-decoration: none !important;
    position: relative;
}

#nav a:hover, #backtoblog a:hover {
    color: #A6EA2A !important;
}

/* Underline animation on hover */
#nav a::after, #backtoblog a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #A6EA2A;
    transition: width .3s ease;
}
#nav a:hover::after, #backtoblog a:hover::after {
    width: 100%;
}

#nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ─── SEPARATOR (pipe) ─── */
#nav .sep,
#nav span {
    color: rgba(255, 255, 255, .1) !important;
}

/* ─── DESCRIPTION / SUB-TEXT (injected via JS) ─── */
.fcs-wp-subtitle {
    text-align: center;
    color: #8B949E;
    font-size: 13px;
    font-weight: 400;
    margin: 2px 0 0;
    font-family: 'Inter', sans-serif;
    animation: fcsCardUp .7s .15s cubic-bezier(.16, 1, .3, 1) both;
}

/* ─── FOOTER TAG (injected via JS) ─── */
.fcs-wp-footer {
    text-align: center;
    margin-top: 36px;
    color: #8B949E;
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    animation: fcsCardUp .7s .3s cubic-bezier(.16, 1, .3, 1) both;
}

.fcs-wp-footer i {
    color: #A6EA2A;
    font-size: 14px;
}

/* ─── CHECKBOX (remember me) ─── */
.login form .forgetmenot {
    display: none;
}

/* ─── LANGUAGE SWITCHER (WP 5.9+) ─── */
.language-switcher {
    display: none !important;
}

/* ─── "Powered by WordPress" link ─── */
.login #backtoblog {
    margin-top: 12px !important;
}

/* ─── PASS STRENGTH METER ─── */
#pass-strength-result {
    background: rgba(23, 29, 36, .8) !important;
    border: 1px solid rgba(255, 255, 255, .08) !important;
    border-radius: 8px !important;
    color: #C9D1D9 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
    padding: 8px 14px !important;
    margin: 8px 0 !important;
    font-weight: 600;
}

#pass-strength-result.strong {
    background: rgba(61, 220, 132, .1) !important;
    border-color: rgba(61, 220, 132, .2) !important;
    color: #3DDC84 !important;
}

#pass-strength-result.good {
    background: rgba(166, 234, 42, .1) !important;
    border-color: rgba(166, 234, 42, .2) !important;
    color: #A6EA2A !important;
}

#pass-strength-result.bad,
#pass-strength-result.short {
    background: rgba(255, 92, 92, .1) !important;
    border-color: rgba(255, 92, 92, .2) !important;
    color: #FF5C5C !important;
}

/* ─── INDICATOR WRAPPER ─── */
.login .pw-weak,
.login .user-pass1-wrap {
    margin-bottom: 14px !important;
}

.login .pw-weak label {
    color: #C9D1D9 !important;
}

/* ─── HIDE WP LOGO DEFAULT ─── */
.wp-core-ui .button-secondary {
    background: rgba(255, 255, 255, .06) !important;
    border: 1px solid rgba(255, 255, 255, .1) !important;
    border-radius: 8px !important;
    color: #C9D1D9 !important;
    font-family: 'Inter', sans-serif !important;
    transition: all .3s ease;
}
.wp-core-ui .button-secondary:hover {
    background: rgba(255, 255, 255, .1) !important;
    border-color: rgba(255, 255, 255, .2) !important;
    color: #fff !important;
}

/* ─── TOGGLE PASSWORD (eye icon) ─── */
.login .wp-hide-pw,
.login .wp-pwd button {
    color: #8B949E !important;
    background: transparent !important;
    border: none !important;
    transition: color .3s ease;
}
.login .wp-hide-pw:hover,
.login .wp-pwd button:hover {
    color: #A6EA2A !important;
}
.login .wp-hide-pw .dashicons,
.login .wp-pwd button .dashicons {
    color: inherit !important;
}

/* ─── PASSWORD WRAP ─── */
.login .wp-pwd {
    position: relative;
}

.login .wp-pwd .password-input-wrapper {
    position: relative;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 480px) {
    #login {
        padding: 80px 16px 40px !important;
        max-width: 100% !important;
    }
    .login form {
        padding: 24px !important;
    }
    #login h1 a {
        width: 180px !important;
        height: 42px !important;
    }
}
