:root {
    --auth-primary: #3b6df6;
    --auth-primary-dark: #244cc8;
    --auth-ink: #1f2937;
    --auth-muted: #667085;
    --auth-line: #d9e0ea;
    --auth-bg: #f7f9fc;
    --auth-danger: #b42318;
}

* { box-sizing: border-box; }

body.authentication-bg {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--auth-ink);
    background: var(--auth-bg);
}

.auth-fluid {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.38)), url("../auth/bg-auth.jpg") center/cover;
}

.auth-fluid-form-box {
    width: 100%;
    max-width: 480px;
    padding: 48px;
    background: #fff;
    border-top: 3px solid var(--auth-primary);
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: relative;
    z-index: 1;
}

.auth-fluid-form-box.auth-form-wide {
    max-width: 640px;
}

.auth-section-title {
    margin: 4px 0 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--auth-ink);
    border-bottom: 1px solid var(--auth-line);
    padding-bottom: 10px;
}

.auth-form-signup .auth-field textarea.auth-input {
    min-height: 88px;
    padding: 12px 14px;
    height: auto;
}

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

.auth-brand { margin-bottom: 16px; }
.auth-logo { color: var(--auth-ink); font-size: 22px; font-weight: 800; letter-spacing: 0; text-decoration: none; }
.auth-content { margin: auto 0; }
.auth-heading h1 { margin: 0 0 8px; font-size: 28px; line-height: 1.2; letter-spacing: 0; }
.auth-heading p, .auth-social p, .auth-bottom-link, .auth-footer { color: var(--auth-muted); }
.auth-heading p { margin: 0 0 28px; line-height: 1.55; }
.auth-form { display: grid; gap: 18px; }
.auth-field { display: grid; gap: 8px; }
.auth-field label, .auth-check { font-size: 14px; font-weight: 600; }
.auth-label-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.auth-label-row a, .auth-bottom-link a { color: var(--auth-primary-dark); font-size: 13px; font-weight: 700; text-decoration: none; }

.auth-input {
    width: 100%;
    height: 46px;
    border: 1px solid var(--auth-line);
    border-radius: 6px;
    padding: 0 14px;
    color: var(--auth-ink);
    background: #fff;
    font: inherit;
}

.auth-input:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px rgba(59, 109, 246, 0.16);
    outline: none;
}

.auth-check { display: inline-flex; align-items: center; gap: 10px; color: #344054; }
.auth-checkbox { width: 16px; height: 16px; accent-color: var(--auth-primary); }

.auth-primary-button {
    height: 46px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    background: var(--auth-primary);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.auth-primary-button:hover { background: var(--auth-primary-dark); }
.auth-alert { border: 1px solid #fecdca; background: #fffbfa; color: var(--auth-danger); padding: 12px 14px; border-radius: 6px; }
.auth-alert p, .auth-error { margin: 0; }
.auth-error { color: var(--auth-danger); font-size: 13px; }
.auth-social { margin-top: 28px; text-align: center; }
.auth-social p { margin: 0 0 14px; font-size: 14px; }
.auth-social-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.auth-social-button {
    min-height: 46px;
    border: 1px solid var(--auth-line);
    border-radius: 6px;
    background: #fff;
    color: #344054;
    font: inherit;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-social-button span { color: var(--auth-muted); font-size: 11px; font-weight: 600; }
.auth-social-button:disabled { cursor: not-allowed; opacity: 0.72; }
.auth-bottom-link { margin: 22px 0 0; text-align: center; font-size: 14px; }
.auth-footer { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; font-size: 12px; }

.auth-fluid-right {
    flex: 1;
    display: flex;
    align-items: flex-end;
    padding: 64px;
    color: #fff;
    background: rgba(15, 23, 42, 0.32);
}

.auth-testimonial { max-width: 700px; }
.auth-kicker { display: inline-block; margin-bottom: 14px; font-size: 13px; font-weight: 800; text-transform: uppercase; }
.auth-testimonial h2 { max-width: 680px; margin: 0 0 16px; font-size: 42px; line-height: 1.12; letter-spacing: 0; }
.auth-testimonial p { max-width: 560px; margin: 0; color: rgba(255, 255, 255, 0.84); font-size: 18px; line-height: 1.6; }

@media (min-width: 520px) {
    .auth-form-grid-two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .auth-fluid { display: block; background: #fff; }
    .auth-fluid-form-box { max-width: none; min-height: 100vh; padding: 32px 22px; }
    .auth-fluid-right { display: none; }
}

@media (max-width: 420px) {
    .auth-social-grid { grid-template-columns: 1fr; }
    .auth-label-row { align-items: flex-start; flex-direction: column; gap: 6px; }
}
