/* ── FlyWithAustin Custom Login Page ──────────────────────────────────
   Replaces the default WordPress login screen with a fully branded
   experience matching the flywithaustin.com aesthetic.
──────────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=Nunito:wght@400;600;700;800&display=swap');

/* ══ PAGE BACKGROUND ══ */
body.fwa-login-body,
body.login {
    background: #1e2530 !important;
    background-image:
        linear-gradient(rgba(14,165,233,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14,165,233,0.04) 1px, transparent 1px) !important;
    background-size: 40px 40px !important;
    font-family: 'Nunito', sans-serif !important;
    position: relative;
    overflow-x: hidden;
    /* Vertical centering */
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 40px 20px !important;
}

/* Subtle animated glow top-right */
body.fwa-login-body::before {
    content: '';
    position: fixed;
    top: -200px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(232,130,26,0.12) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
    animation: fwaGlow 6s ease-in-out infinite alternate;
}
body.fwa-login-body::after {
    content: '';
    position: fixed;
    bottom: -150px; left: -150px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(106,180,216,0.10) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}
@keyframes fwaGlow {
    from { opacity: 0.7; transform: scale(1); }
    to   { opacity: 1;   transform: scale(1.08); }
}

/* ══ DECORATIVE PLANE ══ */
.fwa-login-plane {
    position: fixed;
    top: 15%;
    left: -100px;
    font-size: 80px;
    opacity: 0.06;
    transform: rotate(-5deg);
    pointer-events: none;
    z-index: 0;
    animation: fwaFly 20s linear infinite;
    filter: grayscale(1);
}
@keyframes fwaFly {
    0%   { left: -100px; top: 15%; opacity: 0.03; }
    15%  { opacity: 0.08; }
    85%  { opacity: 0.08; }
    100% { left: 110%;   top: 35%; opacity: 0.03; }
}

/* ══ LOGIN FORM WRAPPER ══ */
#login {
    width: 380px !important;
    max-width: 95vw !important;
    padding: 0 !important;
    position: relative;
    z-index: 1;
}

/* ══ LOGO — text wordmark (no image) ══ */
#login h1 a {
    background-image: none !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    text-indent: 0 !important;
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif !important;
    font-size: 42px !important;
    font-weight: 900 !important;
    letter-spacing: 4px !important;
    text-transform: uppercase !important;
    color: #ffffff !important;
    text-align: center !important;
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    margin: 0 auto 4px !important;
    line-height: 1 !important;
    transition: opacity 0.2s !important;
}
#login h1 a::before {
    content: '✈ ';
    color: #e8821a;
    font-size: 36px;
}
#login h1 a:hover { opacity: 0.85 !important; }

/* ══ TAGLINE UNDER LOGO ══ */
#login h1 {
    margin-bottom: 0 !important;
}
#login h1::after {
    content: 'Student & Instructor Portal';
    display: block;
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #6ab4d8;
    text-align: center;
    margin-bottom: 20px;
}

/* ══ FORM CARD ══ */
#loginform,
#lostpasswordform,
#resetpassform {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    border-radius: 18px !important;
    padding: 32px !important;
    box-shadow:
        0 20px 60px rgba(0,0,0,0.4),
        0 0 0 1px rgba(232,130,26,0.08),
        inset 0 1px 0 rgba(255,255,255,0.08) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin-top: 0 !important;
}

/* Top accent line */
#loginform::before,
#lostpasswordform::before,
#resetpassform::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, #e8821a, #6ab4d8);
    border-radius: 2px;
    margin-bottom: 24px;
}

/* ══ FORM LABELS ══ */
#loginform label,
#lostpasswordform label,
#resetpassform label {
    color: #94a3b8 !important;
    font-family: 'Nunito', sans-serif !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
}

/* ══ INPUTS ══ */
#loginform input[type="text"],
#loginform input[type="password"],
#loginform input[type="email"],
#lostpasswordform input[type="text"],
#lostpasswordform input[type="email"],
#resetpassform input[type="password"],
input#user_login,
input#user_pass,
input#user_email {
    background: rgba(255,255,255,0.07) !important;
    border: 2px solid rgba(255,255,255,0.12) !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-family: 'Nunito', sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 12px 16px !important;
    height: auto !important;
    width: 100% !important;
    box-shadow: none !important;
    transition: border-color 0.2s, background 0.2s !important;
    -webkit-appearance: none;
    appearance: none;
}
#loginform input[type="text"]:focus,
#loginform input[type="password"]:focus,
#loginform input[type="email"]:focus,
#lostpasswordform input[type="text"]:focus,
#lostpasswordform input[type="email"]:focus,
#resetpassform input[type="password"]:focus,
input#user_login:focus,
input#user_pass:focus,
input#user_email:focus {
    border-color: #e8821a !important;
    background: rgba(255,255,255,0.10) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(232,130,26,0.15) !important;
    color: #ffffff !important;
}

/* Placeholder */
::-webkit-input-placeholder { color: rgba(255,255,255,0.3) !important; }
::-moz-placeholder           { color: rgba(255,255,255,0.3) !important; }

/* Password reveal eye */
.wp-pwd { position: relative; }
button.wp-hide-pw {
    background: transparent !important;
    border: none !important;
    color: #94a3b8 !important;
}
button.wp-hide-pw:hover { color: #e8821a !important; }

/* ══ SUBMIT BUTTON ══ */
#wp-submit,
input[type="submit"],
.button-primary {
    background: #e8821a !important;
    border: none !important;
    border-radius: 50px !important;
    color: #ffffff !important;
    font-family: 'Nunito', sans-serif !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    padding: 13px 28px !important;
    height: auto !important;
    width: 100% !important;
    cursor: pointer !important;
    box-shadow: 0 4px 20px rgba(232,130,26,0.45) !important;
    transition: all 0.2s !important;
    text-shadow: none !important;
    margin-top: 8px !important;
}
#wp-submit:hover,
input[type="submit"]:hover {
    background: #c96a0c !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 28px rgba(232,130,26,0.55) !important;
}
#wp-submit:active,
input[type="submit"]:active {
    transform: translateY(0) !important;
}

/* ══ REMEMBER ME ══ */
.forgetmenot {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}
.forgetmenot label {
    color: #94a3b8 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    cursor: pointer !important;
}
input#rememberme {
    width: 16px !important;
    height: 16px !important;
    accent-color: #e8821a !important;
    cursor: pointer !important;
}

/* ══ SUBMIT ROW LAYOUT ══ */
.submit {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    margin-top: 20px !important;
}

/* ══ LINKS BELOW FORM ══ */
#nav,
#backtoblog {
    text-align: center !important;
    padding: 10px 0 !important;
}
#nav a,
#backtoblog a,
.privacy-policy-link {
    color: #6ab4d8 !important;
    font-family: 'Nunito', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}
#nav a:hover,
#backtoblog a:hover { color: #e8821a !important; }
#nav { margin-top: 16px !important; }

/* ══ ERROR MESSAGES ══ */
#login_error,
.message,
.success {
    border-radius: 10px !important;
    border-left: 4px solid #e05252 !important;
    background: rgba(224,82,82,0.12) !important;
    color: #fca5a5 !important;
    font-family: 'Nunito', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 12px 16px !important;
    margin-bottom: 16px !important;
}
.message, .success {
    border-left-color: #3db87a !important;
    background: rgba(61,184,122,0.12) !important;
    color: #86efac !important;
}

/* ══ PASSWORD STRENGTH METER ══ */
#pass-strength-result {
    border-radius: 8px !important;
    font-family: 'Nunito', sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border: none !important;
    padding: 8px 12px !important;
}

/* ══ FWA FOOTER ══ */
.fwa-login-footer {
    text-align: center;
    margin-top: 20px;
    padding-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.fwa-login-footer a {
    color: #6ab4d8 !important;
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}
.fwa-login-footer a:hover { color: #e8821a !important; }
.fwa-login-footer span {
    color: rgba(255,255,255,0.2);
    font-size: 12px;
}
.fwa-login-footer span:last-child {
    color: rgba(255,255,255,0.3);
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    font-weight: 600;
}
.fwa-login-footer .fwa-powered {
    color: rgba(255,255,255,0.25);
    font-family: 'Nunito', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.fwa-login-footer .fwa-powered a {
    color: rgba(255,255,255,0.4) !important;
    font-size: 11px;
    font-weight: 700;
    transition: color 0.2s;
}
.fwa-login-footer .fwa-powered a:hover { color: #e8821a !important; }

/* ══ PRIVACY POLICY LINK ══ */
.privacy-policy-link {
    display: block;
    text-align: center;
    margin-top: 10px;
}

/* ══ PASSWORD RESET PAGE ══ */
body.login-action-rp #loginform::before,
body.login-action-resetpass #loginform::before {
    background: linear-gradient(90deg, #6ab4d8, #3db87a);
}

/* ══ REGISTRATION DISABLED MESSAGE ══ */
#login .message {
    margin-bottom: 0;
}

/* ══ RESPONSIVE ══ */
@media (max-width: 420px) {
    #login { width: 100% !important; padding: 0 16px !important; }
    #loginform, #lostpasswordform, #resetpassform { padding: 24px 20px !important; }
}

/* ══ ANIMATION ══ */
#login {
    animation: fwaLoginFadeIn 0.4s ease both;
}
@keyframes fwaLoginFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ══ Elementor / theme override on login page ══ */
body.fwa-login-body {
  --e-global-color-accent: #e8821a !important;
  --accent-color: #e8821a !important;
}
body.fwa-login-body #wp-submit:hover,
body.fwa-login-body #wp-submit:focus,
body.fwa-login-body #wp-submit:active,
body.login #wp-submit:hover,
body.login #wp-submit:focus,
body.login #wp-submit:active,
body.fwa-login-body input[type="submit"]:hover,
body.fwa-login-body input[type="submit"]:focus,
body.fwa-login-body input[type="submit"]:active {
  background: #c96a0c !important;
  border-color: #c96a0c !important;
  color: #ffffff !important;
  outline: none !important;
  box-shadow: 0 6px 28px rgba(232,130,26,0.55) !important;
}
body.fwa-login-body #nav a:hover,
body.fwa-login-body #backtoblog a:hover { color: #e8821a !important; }
