/* Break Check branded login / password reset / forgot password
   Applied to wp-login.php via login_enqueue_scripts.
   Modeled on the payments.breakcheck.com.au login look.
*/

/* ── Page background ──────────────────────────────────────────────────── */
body.login {
    background: radial-gradient(ellipse at top, #12305a 0%, #0E2647 55%, #081e49 100%);
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

/* Rotating brake rotor — sits behind everything, cut off on the left */
.bc-login-rotor {
    position: fixed;
    top: 50%;
    left: -180px;
    width: 640px;
    height: 640px;
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
    opacity: 0.85;
}
.bc-login-rotor img {
    width: 100%;
    height: 100%;
    display: block;
    animation: bc-rotor-spin 90s linear infinite;
}
@keyframes bc-rotor-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@media (max-width: 900px) {
    .bc-login-rotor { display: none; }
}

/* Keep the form + logo above the rotor */
body.login #login,
body.login .language-switcher {
    position: relative;
    z-index: 1;
}

/* ── Logo (shield + wordmark) ─────────────────────────────────────────── */
body.login #login {
    padding: 0 20px;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}
body.login #login h1 {
    text-align: center;
    margin: 0 0 20px;
}
body.login #login h1 a,
body.login .login h1 a {
    background-image: url('../img/logo-white.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 240px;
    height: 84px;
    margin: 0 auto;
    text-indent: -9999em;
    outline: none;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.35));
    display: block;
}

/* ── Small-caps eyebrow above the form ────────────────────────────────── */
.bc-login-eyebrow {
    text-align: center;
    color: #6b7280;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    margin: 20px 0 10px;
    padding: 14px 0 10px;
    background: #fff;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}
/* When the eyebrow is directly above the form, join them visually */
.bc-login-eyebrow + form {
    margin-top: 0 !important;
    border-radius: 0 0 8px 8px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35) !important;
}

/* ── Form container ───────────────────────────────────────────────────── */
body.login form {
    background: #fff;
    border: 0;
    border-radius: 10px;
    padding: 26px 28px 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    margin-top: 12px;
}

/* Labels */
body.login form label {
    color: #0E2647;
    font-weight: 600;
    font-size: 14px;
}

/* Inputs */
body.login input[type="text"],
body.login input[type="password"],
body.login input[type="email"] {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 15px;
    background: #fff;
    color: #111827;
    box-shadow: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
body.login input[type="text"]:focus,
body.login input[type="password"]:focus,
body.login input[type="email"]:focus {
    border-color: #206bd0;
    box-shadow: 0 0 0 3px rgba(32, 107, 208, 0.18);
    outline: none;
}

/* Submit button — Break Check yellow */
body.login .button-primary,
body.login .wp-core-ui .button-primary {
    background: #FFC72C !important;
    border: 1px solid #e6a800 !important;
    color: #0E2647 !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    box-shadow: 0 2px 6px rgba(255, 199, 44, 0.35) !important;
    border-radius: 6px !important;
    padding: 10px 20px !important;
    height: auto !important;
    line-height: 1.5 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: 15px !important;
    width: 100%;
}
body.login .button-primary:hover,
body.login .button-primary:focus,
body.login .wp-core-ui .button-primary:hover,
body.login .wp-core-ui .button-primary:focus {
    background: #e6a800 !important;
    border-color: #e6a800 !important;
    color: #0E2647 !important;
    box-shadow: 0 4px 10px rgba(255, 199, 44, 0.5) !important;
}

/* "Remember me" */
body.login .forgetmenot label {
    color: #6b7280;
    font-weight: 500;
    font-size: 13px;
}

/* Links (Lost password, Back to site) */
body.login #nav,
body.login #backtoblog {
    text-align: center;
    padding: 0;
    margin-top: 14px;
}
body.login #nav a,
body.login #backtoblog a,
body.login .login #nav a,
body.login .login #backtoblog a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.15s;
}
body.login #nav a:hover,
body.login #backtoblog a:hover,
body.login .login #nav a:hover,
body.login .login #backtoblog a:hover {
    color: #FFC72C;
    text-decoration: none;
}

/* ── Messages ("Welcome to Break Check…", errors, logged-out) ────────── */
body.login .message,
body.login #login_error {
    border-radius: 8px;
    border-left-width: 4px;
    background: #fff;
    padding: 14px 18px;
    color: #0E2647;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 14px;
}
body.login .message { border-left-color: #206bd0; }
body.login #login_error { border-left-color: #dc2626; color: #991b1b; }

/* Password strength meter */
body.login #pass-strength-result {
    border-radius: 4px;
    background: #f9fafb;
    color: #0E2647;
    border: 1px solid #e5e7eb;
    font-weight: 600;
    font-size: 12px;
}
body.login #pass-strength-result.strong { background: #d1fae5; border-color: #a7f3d0; color: #065f46; }
body.login #pass-strength-result.good   { background: #dbeafe; border-color: #bfdbfe; color: #1e40af; }
body.login #pass-strength-result.short,
body.login #pass-strength-result.bad    { background: #fee2e2; border-color: #fecaca; color: #991b1b; }

/* Password reveal / cancel icons */
body.login .wp-hide-pw,
body.login .wp-cancel-pw {
    color: #6b7280;
}

/* ── Language switcher (bottom of page) ───────────────────────────────── */
body.login .language-switcher {
    text-align: center;
    margin-top: 20px;
}
body.login .language-switcher label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}
body.login .language-switcher select {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 4px 8px;
}
body.login .language-switcher .button {
    background: transparent;
    color: #206bd0;
    border: 1px solid #206bd0;
    box-shadow: none;
    text-shadow: none;
}

/* ── Bottom footer with licence numbers ───────────────────────────────── */
.bc-login-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 30px 20px 20px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    line-height: 1.6;
    margin-top: auto;
}
.bc-login-footer p {
    margin: 0 0 4px;
    color: rgba(255, 255, 255, 0.45);
}
.bc-login-footer a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
}
.bc-login-footer a:hover {
    color: #FFC72C;
}
