/**
 * Velocity One — Branded Login Page
 *
 * Replaces the default WordPress login with brand colors,
 * custom logo, and typography matching the front-end theme.
 */

/* ----------------------------------------------------------------
   Fonts
   ---------------------------------------------------------------- */
@import url('https://use.typekit.net/fxu6wkg.css');

/* ----------------------------------------------------------------
   Page background with aviation image
   ---------------------------------------------------------------- */
body.login {
    background-color: #0f172a; /* slate-950 */
    background-image: url('../img/velocity-one-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: 'Inter', 'Source Sans 3', system-ui, -apple-system, sans-serif;
}

/* Dark overlay via pseudo-element */
body.login::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85); /* slate-900 at 85% */
    z-index: 0;
}

/* Ensure login content sits above overlay */
body.login > * {
    position: relative;
    z-index: 1;
}

/* ----------------------------------------------------------------
   Logo — replace WP logo with V1 logomark
   ---------------------------------------------------------------- */
/* Logo handled via inline SVG injection in admin-branding.php */

/* Wordmark below logo */
#login h1::after {
    content: 'VELOCITY ONE';
    display: block;
    text-align: center;
    font-family: 'Inter', 'Source Sans 3', system-ui, sans-serif;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.15em;
    color: #f8fafc; /* slate-50 */
    margin-top: 16px;
}

/* ----------------------------------------------------------------
   Login form card
   ---------------------------------------------------------------- */
.login form {
    background: #1e293b; /* slate-800 */
    border: 1px solid #334155; /* slate-700 */
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    padding: 28px 24px;
}

/* ----------------------------------------------------------------
   Labels
   ---------------------------------------------------------------- */
.login label {
    color: #cbd5e1; /* slate-300 */
    font-size: 13px;
    font-weight: 500;
}

/* ----------------------------------------------------------------
   Inputs
   ---------------------------------------------------------------- */
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
    background: #0f172a; /* slate-950 */
    border: 1px solid #475569; /* slate-600 */
    border-radius: 8px;
    color: #f8fafc; /* slate-50 */
    font-size: 14px;
    padding: 8px 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus {
    border-color: #E3AC42; /* amber-500 */
    box-shadow: 0 0 0 2px rgba(227, 172, 66, 0.25);
    outline: none;
}

/* ----------------------------------------------------------------
   Submit button
   ---------------------------------------------------------------- */
.login .button-primary {
    background: #E3AC42 !important; /* amber-500 */
    border: none !important;
    border-radius: 8px !important;
    color: #0f172a !important; /* slate-950 */
    font-weight: 600 !important;
    font-size: 14px !important;
    letter-spacing: 0.02em;
    padding: 8px 24px !important;
    text-shadow: none !important;
    transition: background 0.15s ease, transform 0.1s ease !important;
    height: auto !important;
    line-height: 1.5 !important;
}

.login .button-primary:hover {
    background: #d4a03d !important;
    color: #0f172a !important;
    transform: translateY(-1px);
}

.login .button-primary:focus {
    background: #d4a03d !important;
    color: #0f172a !important;
    box-shadow: 0 0 0 2px rgba(227, 172, 66, 0.4) !important;
}

.login .button-primary:active {
    color: #0f172a !important;
    transform: translateY(0);
}

/* ----------------------------------------------------------------
   "Remember Me" checkbox
   ---------------------------------------------------------------- */
.login .forgetmenot label {
    color: #94a3b8; /* slate-400 */
    font-size: 13px;
}

.login input[type="checkbox"] {
    border: 1px solid #475569;
    border-radius: 4px;
    background: #0f172a;
}

.login input[type="checkbox"]:checked {
    background: #E3AC42;
    border-color: #E3AC42;
}

/* ----------------------------------------------------------------
   Links (Lost password, Back to site)
   ---------------------------------------------------------------- */
.login #nav,
.login #backtoblog {
    text-align: center;
}

.login #nav a,
.login #backtoblog a {
    color: #94a3b8 !important; /* slate-400 */
    font-size: 13px;
    text-decoration: none;
    transition: color 0.15s ease;
}

.login #nav a:hover,
.login #backtoblog a:hover {
    color: #E3AC42 !important; /* amber-500 */
}

/* ----------------------------------------------------------------
   Error / Success messages
   ---------------------------------------------------------------- */
.login .message,
.login .success {
    background: #1e293b;
    border-left: 4px solid #E3AC42;
    border-radius: 8px;
    color: #cbd5e1;
    padding: 12px 16px;
    margin-bottom: 20px;
    box-shadow: none;
}

.login #login_error {
    background: #1e293b;
    border-left: 4px solid #ef4444; /* red-500 */
    border-radius: 8px;
    color: #fca5a5; /* red-300 */
    padding: 12px 16px;
    margin-bottom: 20px;
    box-shadow: none;
}

.login #login_error a {
    color: #E3AC42;
}

/* ----------------------------------------------------------------
   Privacy policy link
   ---------------------------------------------------------------- */
.login .privacy-policy-page-link a {
    color: #64748b; /* slate-500 */
    font-size: 12px;
}

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

/* ----------------------------------------------------------------
   Language switcher
   ---------------------------------------------------------------- */
.language-switcher {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    border-radius: 12px !important;
}

.language-switcher .button-primary {
    background: #334155 !important;
    color: #f8fafc !important;
}

/* ----------------------------------------------------------------
   Hide "Powered by WordPress" shake animation
   ---------------------------------------------------------------- */
@keyframes none { }

/* ----------------------------------------------------------------
   Two-factor / application password styles (if plugins add them)
   ---------------------------------------------------------------- */
.login .backup-methods-wrap a {
    color: #94a3b8;
}

.login .backup-methods-wrap a:hover {
    color: #E3AC42;
}
