/* ============================================================
   IRON MUSCLE GYM — Login theme
   Dark, athletic, energetic. Bootstrap 5 compatible.

   RESPONSIVE CONVENTIONS (keep these for all new design work):
   - Layout breakpoint: 992px (Bootstrap lg) — below it the brand
     panel hides and the form is centered full-width.
   - Never use fixed pixel widths on layout blocks; use max-width
     (e.g. .form-card max-width: 430px) so blocks shrink fluidly.
   - Fluid type via clamp() (e.g. .brand-hero h1).
   - Verify no horizontal overflow at 320 / 375 / 768 / 1024px.
   ============================================================ */

:root {
    --bg: #0a0e13;
    --bg-soft: #10151d;
    --card: #121821;
    --line: rgba(255, 255, 255, .08);
    --text: #eef1f4;
    --muted: #8f98a5;
    --orange: #ff6b1a;
    --red: #e63946;
    --grad: linear-gradient(135deg, var(--orange), var(--red));
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background:
        radial-gradient(900px 600px at 85% -10%, rgba(255, 107, 26, .16), transparent 60%),
        radial-gradient(700px 500px at -10% 110%, rgba(230, 57, 70, .12), transparent 60%),
        var(--bg);
    -webkit-font-smoothing: antialiased;
}

.login-wrap { display: flex; min-height: 100vh; }

/* ============ Left branding panel ============ */
.brand-panel {
    display: none;
    width: 46%;
    flex-direction: column;
    justify-content: space-between;
    padding: 3.25rem 3.5rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(165deg, #0e131a 0%, #0a0e13 55%, #0c1016 100%);
    border-right: 1px solid var(--line);
}

.brand-panel::before {
    content: "";
    position: absolute;
    inset: auto -20% -30% auto;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(255, 107, 26, .22), transparent 65%);
}

.brand-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(-45deg, transparent 0 22px, rgba(255, 255, 255, .025) 22px 23px);
    pointer-events: none;
}

.brand { position: relative; z-index: 1; display: flex; align-items: center; gap: .9rem; }

.brand-logo {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--grad);
    box-shadow: 0 8px 24px rgba(255, 107, 26, .35);
}

.brand-logo svg { width: 28px; height: 28px; }

.brand-name {
    font-family: "Oswald", sans-serif;
    font-weight: 600;
    letter-spacing: .14em;
    font-size: 1.15rem;
    text-transform: uppercase;
}

.brand-name span { color: var(--orange); }

.brand-hero { position: relative; z-index: 1; margin: auto 0; }

.brand-hero h1 {
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    line-height: 1.02;
    letter-spacing: .02em;
    text-transform: uppercase;
    margin: 0 0 1.1rem;
}

.brand-hero h1 span {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.brand-hero p {
    color: var(--muted);
    font-size: 1.02rem;
    max-width: 34ch;
    line-height: 1.6;
    margin: 0 0 2rem;
}

.brand-feats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .75rem;
}

.brand-feats li {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: #cdd3da;
    font-size: .95rem;
    font-weight: 500;
}

.brand-feats svg { width: 18px; height: 18px; stroke: var(--orange); flex: none; }

.brand-foot {
    position: relative;
    z-index: 1;
    color: #5c6570;
    font-size: .82rem;
    letter-spacing: .03em;
}

/* ============ Right form panel ============ */
.form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.form-card { width: 100%; max-width: 430px; }

.mobile-brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-bottom: 2rem;
}

.mobile-brand .brand-logo { width: 44px; height: 44px; border-radius: 12px; }
.mobile-brand .brand-logo svg { width: 24px; height: 24px; }
.mobile-brand .brand-name { font-size: 1rem; }

.form-title {
    font-family: "Oswald", sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: 1.9rem;
    margin: 0 0 .4rem;
}

.form-sub { color: var(--muted); margin: 0 0 1.75rem; font-size: .95rem; }

/* ---- Bootstrap 5 form overrides ---- */
.form-label {
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: #c3cad2;
    margin-bottom: .45rem;
}

.form-control {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: 10px;
    padding: .8rem 1rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.form-control::placeholder { color: #5d6672; }

.form-control:focus {
    background: var(--bg-soft);
    color: var(--text);
    border-color: var(--orange);
    box-shadow: 0 0 0 .25rem rgba(255, 107, 26, .14);
}

.form-check-input {
    background-color: var(--bg-soft);
    border: 1px solid var(--line);
}

.form-check-input:checked { background-color: var(--orange); border-color: var(--orange); }
.form-check-label { color: var(--muted); font-size: .88rem; }

.btn-login {
    margin-top: .5rem;
    background: var(--grad);
    border: 0;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: .03em;
    padding: .85rem 1rem;
    color: #fff;
    box-shadow: 0 10px 26px rgba(255, 107, 26, .28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.btn-login svg { width: 18px; height: 18px; }

.btn-login:hover, .btn-login:focus {
    color: #fff;
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(255, 107, 26, .36);
}

.form-alert {
    border: 0;
    border-radius: 10px;
    background: rgba(230, 57, 70, .12);
    color: #ff9aa0;
    font-size: .9rem;
    margin-bottom: 1.25rem;
    padding: .85rem 1rem;
}

.form-alert div + div { margin-top: .25rem; }

.form-foot { text-align: center; margin-top: 1.5rem; color: #5c6570; font-size: .82rem; }

/* ---- Responsive ---- */
@media (min-width: 992px) {
    .brand-panel { display: flex; }
    .mobile-brand { display: none; }
}

@media (max-width: 575.98px) {
    .form-panel { padding: 1.5rem; }
    .form-title { font-size: 1.6rem; }
}
