@import url("fonts.css");

/* SkillzBook login — faithful build of the approved Login design. */
.sb-lg-page, .sb-lg-page * { box-sizing: border-box; }
.sb-lg-page { font-family: 'Archivo', sans-serif; color: #1f2a37; background: #ffffff; }
.sb-lg-page a { color: #0f7fb8; text-decoration: none; }
.sb-lg-page a:hover { color: #0b6a9a; text-decoration: underline; }

#page.sb-lg {
    display: flex !important;
    flex-direction: row !important;   /* Boost sets #page{flex-direction:column}; force row for the split */
    align-items: stretch;
    flex-wrap: nowrap;
    min-height: 100vh;
    margin: 0;
    padding: 0 !important;
    background: #ffffff;
}

/* Left brand panel. */
.sb-lg-brand {
    flex: 1.1 1 0; min-width: 0;
    position: relative; overflow: hidden; min-height: 100vh;
    padding: 40px 56px 48px;
    display: flex; flex-direction: column; justify-content: flex-start; gap: 32px;
    background: linear-gradient(135deg, #1ea7e1 0%, #1590cc 60%, #0f7fb8 100%);
    color: #ffffff; border-right: 2px solid #0f7fb8;
}
.sb-lg-art { position: absolute; top: -59px; left: 294px; width: 556px; height: 496px; opacity: .9; overflow: visible; pointer-events: none; }

/* Logo (same asset as the home page). */
.sb-lg-logo { position: relative; align-self: flex-start; display: inline-flex; align-items: center; }
.sb-lg-logo img { height: 52px; width: auto; display: block; }

.sb-lg-brandbottom { position: relative; display: flex; flex-direction: column; gap: 32px; margin-top: auto; }
.sb-lg-brandcopy { display: flex; flex-direction: column; gap: 24px; max-width: 520px; }
.sb-lg-kicker { display: flex; align-items: center; gap: 14px; font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: 0.28em; }
.sb-lg-kicker span { width: 32px; height: 2px; background: #ffffff; }
.sb-lg-brandh1 { margin: 0; font-size: clamp(40px, 4.6vw, 72px); line-height: 0.98; letter-spacing: -0.04em; font-weight: 800; }
.sb-lg-brandp { margin: 0; font-size: 19px; line-height: 1.6; color: #e6f5fc; text-wrap: pretty; }
.sb-lg-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 2px solid rgba(255, 255, 255, 0.6); max-width: 640px; }
.sb-lg-point { padding: 18px 20px 0 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; font-weight: 600; line-height: 1.4; color: #ffffff; }
.sb-lg-pointicon { color: #ffffff; font-size: 20px; line-height: 1; }

/* Right form column. */
.sb-lg-formcol { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 40px 32px; min-height: 100vh; }
.sb-lg-formcard { width: 100%; max-width: 400px; }
.sb-lg-formhead { display: flex; flex-direction: column; gap: 6px; padding-bottom: 22px; margin-bottom: 26px; border-bottom: 1px solid #eef1f5; }
.sb-lg-formhead h2 { margin: 0; font-size: 34px; line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; color: #16202b; }
.sb-lg-formhead p { margin: 0; font-size: 15.5px; color: #6b7684; }

/* Hide the core form's own logo + heading. */
#page.sb-lg .login-logo,
#page.sb-lg .login-heading { display: none !important; }

/* Moodle login form styled to the design. */
#page.sb-lg .login-wrapper,
#page.sb-lg .login-container { width: 100%; max-width: none; margin: 0; padding: 0; }
/* Kill Boost's default card chrome on the login box — the split-screen form is clean. */
#page.sb-lg .login-container { background: transparent; box-shadow: none; border-radius: 0; }
#page.sb-lg .login-form { margin: 0; display: flex; flex-direction: column; gap: 20px; }
#page.sb-lg .login-form-username,
#page.sb-lg .login-form-password { margin: 0 !important; }
#page.sb-lg label,
#page.sb-lg .login-form label { font-size: 13px; font-weight: 600; color: #56626f; margin-bottom: 7px; letter-spacing: 0.01em; }
#page.sb-lg input.form-control {
    width: 100%; height: 54px; padding: 0 18px;
    border: 1.5px solid #e4e9ef; border-radius: 12px; background: #f7f9fb;
    font: 500 16px 'Archivo', sans-serif; color: #1f2a37;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
#page.sb-lg input.form-control::placeholder { color: #9aa4b0; }
#page.sb-lg input.form-control:hover { border-color: #d3dbe4; }
#page.sb-lg input.form-control:focus {
    border-color: #1ea7e1; background: #ffffff;
    box-shadow: 0 0 0 4px rgba(30, 167, 225, 0.14); outline: none;
}
#page.sb-lg .form-check { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; font-size: 14.5px; color: #4a5561; }
#page.sb-lg .form-check-input { width: 18px; height: 18px; margin: 0; accent-color: #1ea7e1; border-radius: 5px; }
#page.sb-lg .btn-primary,
#page.sb-lg #loginbtn {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; height: 54px; padding: 0 22px; margin-top: 6px;
    background: linear-gradient(135deg, #23aee6 0%, #1287c4 100%);
    border: 0; border-radius: 12px; color: #ffffff;
    font: 700 16.5px 'Archivo', sans-serif; text-align: left; letter-spacing: 0.01em;
    box-shadow: 0 10px 22px -8px rgba(15, 127, 184, 0.55);
    transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
}
#page.sb-lg .btn-primary::after,
#page.sb-lg #loginbtn::after {
    content: "\2192"; font-size: 18px; font-weight: 700;
    transition: transform .16s ease;
}
#page.sb-lg .btn-primary:hover,
#page.sb-lg #loginbtn:hover { transform: translateY(-1px); box-shadow: 0 14px 26px -8px rgba(15, 127, 184, 0.62); filter: brightness(1.03); }
#page.sb-lg .btn-primary:hover::after,
#page.sb-lg #loginbtn:hover::after { transform: translateX(3px); }
#page.sb-lg .btn-primary:active,
#page.sb-lg #loginbtn:active { transform: translateY(0); box-shadow: 0 6px 14px -8px rgba(15, 127, 184, 0.6); }
#page.sb-lg a { color: #0f7fb8; font-weight: 600; }
#page.sb-lg .login-form-forgotpassword { margin: 0 !important; font-size: 14px; }
#page.sb-lg .login-form-forgotpassword a { font-weight: 700; }
/* Sign-up / help footer. */
#page.sb-lg .login-form-signup,
#page.sb-lg .login-instructions {
    margin: 6px 0 0 !important; padding-top: 22px; border-top: 1px solid #eef1f5;
    font-size: 14.5px; color: #6b7684;
}
#page.sb-lg .login-divider:empty,
#page.sb-lg .login-identityproviders:empty { display: none; }

/* Tidy: hide Boost's floating footer-popover button; make the cookies notice subtle. */
#page.sb-lg .btn-footer-popover,
.pagelayout-login .btn-footer-popover,
.pagelayout-login #page-footer .footer-popover { display: none !important; }
#page.sb-lg .login-container .btn-secondary:not(.toggle-sensitive-btn) {
    background: transparent !important; border: 0 !important; color: #9aa4af !important;
    font: 500 13px 'Archivo', sans-serif !important; height: auto !important;
    padding: 6px 0 0 !important; text-decoration: underline; display: inline-block;
}
#page.sb-lg .login-form-cookies,
#page.sb-lg [class*="cookies"] { text-align: center; margin-top: 6px !important; }

/* "Create new account" — a prominent CTA so new customers (e.g. arriving from Buy)
   can register, not just sign in. Overrides the subtle-secondary rule above. */
#page.sb-lg .login-container .login-signup { margin-top: 12px !important; }
#page.sb-lg .login-container .login-signup a.btn-secondary {
    display: block !important; width: 100% !important; text-align: center !important;
    background: #ffffff !important; border: 2px solid #7c3aed !important; color: #6d28d9 !important;
    font: 800 15px 'Archivo', sans-serif !important; height: auto !important;
    padding: 12px 18px !important; border-radius: 12px !important;
    text-decoration: none !important; transition: background .14s ease, color .14s ease;
}
#page.sb-lg .login-container .login-signup a.btn-secondary:hover {
    background: #7c3aed !important; color: #ffffff !important;
}

/* Password show/hide toggle — tucked inside the field on the right (not floating below). */
#page.sb-lg .toggle-sensitive-wrapper { position: relative; display: block; }
#page.sb-lg .toggle-sensitive-wrapper input.form-control { padding-right: 48px; }
#page.sb-lg .login-container .toggle-sensitive-btn {
    position: absolute; top: 0; right: 0; z-index: 2;
    width: 46px; height: 54px; margin: 0 !important; padding: 0 !important;
    display: flex; align-items: center; justify-content: center;
    background: transparent !important; border: 0 !important; border-radius: 0 !important;
    color: #9aa4b0 !important; box-shadow: none !important;
}
#page.sb-lg .login-container .toggle-sensitive-btn:hover { color: #1ea7e1 !important; }
#page.sb-lg .toggle-sensitive-btn .icon { margin: 0; font-size: 16px; width: auto; height: auto; }

/* Responsive (mirrors the design). */
@media (max-width: 1200px) {
    .sb-lg-art { width: 40%; right: -18%; left: auto; top: -10%; opacity: .45; }
}
@media (max-width: 900px) {
    #page.sb-lg { flex-direction: column !important; }
    .sb-lg-brand { flex: none; min-height: 0; padding: 40px 28px 48px; }
    .sb-lg-art { width: 300px; right: -120px; left: auto; top: -40px; opacity: .4; }
    .sb-lg-points { display: none; }
    /* Top-align the card (not centred): a card taller than the column would otherwise
       overflow upward into the brand panel and clip the "Sign in" heading. */
    .sb-lg-formcol { min-height: 0; padding: 48px 24px 64px; align-items: flex-start; background: #ffffff; }
}
@media (max-width: 480px) {
    .sb-lg-word { font-size: 40px; }
    .sb-lg-logomark { width: 56px; height: 56px; }
    .sb-lg-formhead h2 { font-size: 34px; }
}
