/* ==========================================================================
   Swift Insurance — WordPress login page brand styling
   Enqueued via login_enqueue_scripts (functions.php). Paths are relative to this
   file at the theme root, so fonts/ and images/ resolve on any domain.
   ========================================================================== */

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter18pt-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter18pt-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter18pt-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --orange: #eb491f;
    --orange-hover: #cf3d17;
    --ink: #161719;
    --cream: #f4f1ec;
}

/* ---- Page ---- */
body.login {
    background: var(--ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #fff;
}

/* subtle brand glow behind the card */
body.login::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(1100px 480px at 50% -8%, rgba(235, 73, 31, .20), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

#login {
    position: relative;
    z-index: 1;
    width: 360px;
    max-width: 92vw;
    padding: 6% 0 4%;
}

/* ---- Logo ---- */
.login h1 {
    margin-bottom: 4px;
}
.login h1 a {
    background-image: url('images/swift-logo-white.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 210px;
    height: 70px;
    margin: 0 auto 24px;
}

/* ---- Form card ---- */
.login form {
    background: #fff;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .38);
    padding: 30px 28px 26px;
    color: var(--ink);
    margin-top: 0;
}

.login label {
    font-size: 14px;
    font-weight: 600;
    color: #1e2939;
    letter-spacing: -.1px;
}

.login form .input,
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
    background: #fff;
    border: 1px solid #d1d5dc;
    border-radius: 8px;
    padding: 10px 13px;
    font-size: 15px;
    line-height: 1.4;
    color: var(--ink);
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.login form .input:focus,
.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(235, 73, 31, .14);
    outline: none;
}

/* show-password toggle */
.login .button.wp-hide-pw:hover .dashicons,
.login .button.wp-hide-pw:focus .dashicons {
    color: var(--orange);
}
.login .button.wp-hide-pw:focus {
    box-shadow: none;
    border-color: transparent;
}

/* remember me */
.login .forgetmenot label {
    font-weight: 400;
    color: #4a5565;
}
.login input[type="checkbox"] {
    border-color: #c4c9d2;
    border-radius: 4px;
}
.login input[type="checkbox"]:checked {
    background: var(--orange);
    border-color: var(--orange);
}
.login input[type="checkbox"]:checked::before {
    content: "";
}
.login input[type="checkbox"]:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 2px rgba(235, 73, 31, .3);
}
.login .message p, .login .notice p, .login .success p {
    font-size: 13px;
    line-height: 1.54;
    margin: .5em 0;
    color: black;
}
/* ---- Primary button ---- */
.wp-core-ui .button-primary,
.login .button-primary {
    background: var(--orange) !important;
    border: 0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    text-shadow: none !important;
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 11px 22px !important;
    height: auto !important;
    line-height: 1.2;
    transition: background .2s ease, box-shadow .2s ease;
}
.wp-core-ui .button-primary:hover,
.login .button-primary:hover,
.wp-core-ui .button-primary:focus,
.login .button-primary:focus {
    background: var(--orange-hover) !important;
    box-shadow: 0 0 0 3px rgba(235, 73, 31, .28) !important;
}

/* ---- Links below the card (on the ink background) ---- */
.login #nav,
.login #backtoblog {
    text-align: center;
    padding: 0 8px;
}
.login #nav a,
.login #backtoblog a,
.login .privacy-policy-page-link a {
    color: rgba(255, 255, 255, .72);
    transition: color .2s ease;
}
.login #nav a:hover,
.login #backtoblog a:hover,
.login #nav a:focus,
.login #backtoblog a:focus,
.login .privacy-policy-page-link a:hover {
    color: var(--orange);
}

/* ---- Messages / errors ---- */
.login .message,
.login .success,
.login #login_error {
    border-radius: 8px;
    border-left: 4px solid var(--orange);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
}
.login #login_error {
    border-left-color: #d63638;
}

/* language switcher (multisite/newer WP) */
.login .language-switcher .button {
    border-radius: 8px;
}
