/*
 * BASPASOZ AUTH — Stage 11A
 */

:root {
    --bp-auth-bg: #f5f7fa;
    --bp-auth-card: #ffffff;
    --bp-auth-ink: #17233a;
    --bp-auth-muted: #7d8795;
    --bp-auth-line: #e4e8ee;
    --bp-auth-accent: #f2546a;
    --bp-auth-accent-hover: #e94760;
    --bp-auth-soft: #fff5f7;
    --bp-auth-serif: "Source Serif 4", "Noto Serif", "PT Serif", Georgia, "Times New Roman", serif;
    --bp-auth-sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bp-auth-bg);
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 10% 10%, rgba(242, 84, 106, .06), transparent 30%),
        radial-gradient(circle at 90% 90%, rgba(23, 35, 58, .04), transparent 28%),
        var(--bp-auth-bg);
    color: var(--bp-auth-ink);
    font-family: var(--bp-auth-sans);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

.bp-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 32px;
}

.bp-auth-shell {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    width: min(100%, 980px);
    overflow: hidden;
    border: 1px solid var(--bp-auth-line);
    border-radius: 22px;
    background: var(--bp-auth-card);
    box-shadow: 0 24px 70px rgba(29, 42, 64, .08);
}

.bp-auth-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 620px;
    padding: 44px;
    overflow: hidden;
    border-right: 1px solid var(--bp-auth-line);
    background:
        radial-gradient(circle at 20% 16%, rgba(242, 84, 106, .12), transparent 32%),
        linear-gradient(160deg, #fff 0%, #fafbfc 100%);
}

.bp-auth-brand::after {
    content: "";
    position: absolute;
    right: -110px;
    bottom: -120px;
    width: 290px;
    height: 290px;
    border: 1px solid rgba(242, 84, 106, .12);
    border-radius: 50%;
    pointer-events: none;
}

.bp-auth-logo {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: fit-content;
    text-decoration: none;
}

.bp-auth-logo img {
    display: block;
    width: 184px;
    max-width: 100%;
    height: auto;
}

.bp-auth-brand-copy {
    position: relative;
    z-index: 1;
    margin: auto 0;
    padding: 50px 0;
}

.bp-auth-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--bp-auth-accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.bp-auth-brand h1 {
    max-width: 410px;
    margin: 0;
    font-family: var(--bp-auth-serif);
    font-size: clamp(36px, 4.5vw, 52px);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.03;
}

.bp-auth-brand-copy p {
    max-width: 410px;
    margin: 18px 0 0;
    color: var(--bp-auth-muted);
    font-size: 12px;
    line-height: 1.7;
}

.bp-auth-security {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding-top: 20px;
    border-top: 1px solid var(--bp-auth-line);
}

.bp-auth-security-icon {
    display: inline-flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bp-auth-soft);
    color: var(--bp-auth-accent);
    font-size: 12px;
    font-weight: 800;
}

.bp-auth-security div {
    display: grid;
    gap: 3px;
}

.bp-auth-security strong {
    font-size: 10.5px;
}

.bp-auth-security span {
    color: var(--bp-auth-muted);
    font-size: 9.5px;
    line-height: 1.5;
}

.bp-auth-form-panel {
    display: flex;
    align-items: center;
    padding: 54px;
}

.bp-auth-form-wrap {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.bp-auth-form-head {
    margin-bottom: 28px;
}

.bp-auth-form-head h2 {
    margin: 0;
    font-family: var(--bp-auth-serif);
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -.025em;
}

.bp-auth-form-head p {
    margin: 8px 0 0;
    color: var(--bp-auth-muted);
    font-size: 11px;
    line-height: 1.6;
}

.bp-auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px 13px;
    border: 1px solid;
    border-radius: 11px;
    font-size: 10.5px;
    line-height: 1.5;
}

.bp-auth-alert-info {
    border-color: #f0cbd2;
    background: #fff7f8;
    color: #6b4650;
}

.bp-auth-alert-error {
    border-color: #efc6cc;
    background: #fff4f5;
    color: #8c3543;
}

.bp-auth-alert-mark {
    display: inline-flex;
    flex: 0 0 21px;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: rgba(242, 84, 106, .1);
    color: var(--bp-auth-accent);
    font-size: 10px;
    font-weight: 800;
}

.bp-auth-form {
    display: grid;
    gap: 18px;
}

.bp-auth-field {
    display: grid;
    gap: 7px;
}

.bp-auth-field label,
.bp-auth-label-row {
    color: #4c586b;
    font-size: 10px;
    font-weight: 700;
}

.bp-auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.bp-auth-label-row a {
    color: var(--bp-auth-accent);
    font-size: 9.5px;
    font-weight: 600;
    text-decoration: none;
}

.bp-auth-label-row a:hover {
    color: var(--bp-auth-accent-hover);
}

.bp-auth-field input[type="email"],
.bp-auth-field input[type="password"],
.bp-auth-field input[type="text"] {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #dfe4ea;
    border-radius: 11px;
    outline: none;
    background: #fbfcfd;
    color: var(--bp-auth-ink);
    font-size: 12px;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.bp-auth-field input:focus {
    border-color: #edb8c1;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(242, 84, 106, .06);
}

.bp-auth-field input[aria-invalid="true"] {
    border-color: #dc8c99;
}

.bp-auth-field input::placeholder {
    color: #a8b0bb;
}

.bp-auth-password {
    position: relative;
}

.bp-auth-password input {
    padding-right: 82px !important;
}

.bp-auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    min-width: 64px;
    height: 32px;
    padding: 0 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #8a94a2;
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
    transform: translateY(-50%);
}

.bp-auth-password-toggle:hover,
.bp-auth-password-toggle:focus-visible {
    background: #f0f2f5;
    color: #4e5b6d;
    outline: none;
}

.bp-auth-remember {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    color: #707b8a;
    font-size: 10px;
    cursor: pointer;
}

.bp-auth-remember input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: var(--bp-auth-accent);
}

.bp-auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 11px;
    background: var(--bp-auth-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(242, 84, 106, .15);
}

.bp-auth-submit:hover,
.bp-auth-submit:focus-visible {
    background: var(--bp-auth-accent-hover);
    outline: none;
}

.bp-auth-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--bp-auth-line);
    color: #9aa3af;
    font-size: 9px;
}

.bp-auth-foot a {
    color: #687486;
    font-weight: 600;
    text-decoration: none;
}

.bp-auth-foot a:hover {
    color: var(--bp-auth-accent);
}

@media (max-width: 850px) {
    .bp-auth {
        padding: 20px;
    }

    .bp-auth-shell {
        grid-template-columns: 1fr;
        max-width: 620px;
    }

    .bp-auth-brand {
        min-height: auto;
        padding: 30px;
        border-right: 0;
        border-bottom: 1px solid var(--bp-auth-line);
    }

    .bp-auth-brand-copy {
        padding: 34px 0;
    }

    .bp-auth-brand h1 {
        max-width: 520px;
        font-size: clamp(32px, 8vw, 44px);
    }

    .bp-auth-brand-copy p {
        max-width: 520px;
    }

    .bp-auth-form-panel {
        padding: 36px 30px;
    }
}

@media (max-width: 520px) {
    .bp-auth {
        align-items: flex-start;
        padding: 0;
    }

    .bp-auth-shell {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .bp-auth-brand {
        padding: 24px 20px;
    }

    .bp-auth-logo img {
        width: 150px;
    }

    .bp-auth-brand-copy {
        padding: 28px 0;
    }

    .bp-auth-brand h1 {
        font-size: 33px;
    }

    .bp-auth-security {
        display: none;
    }

    .bp-auth-form-panel {
        align-items: flex-start;
        padding: 32px 20px 40px;
    }

    .bp-auth-form-head h2 {
        font-size: 34px;
    }

    .bp-auth-foot {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
