:root {
    --font-main: "Inter", "Noto Sans Thai", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-thai: "Noto Sans Thai", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --brand: #1565d8;
    --brand-dark: #0f4fb3;
    --fresh: #10b981;
    --text-main: #111827;
    --text-muted: #667085;
    --line: #dfe5ee;
}

body {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(21, 101, 216, 0.08), rgba(16, 185, 129, 0.08)),
        #f7f9fc;
    color: var(--text-main);
    font-family: var(--font-main);
}

.auth-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
    align-items: center;
    gap: 48px;
    width: min(1180px, calc(100% - 32px));
    min-height: calc(100vh - 84px);
    margin: 0 auto;
    padding: 44px 0;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-mark {
    display: inline-flex;
    position: relative;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--fresh));
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(21, 101, 216, 0.22);
}

.brand-mark i {
    font-size: 1.4rem;
    line-height: 1;
    transform: translateY(1px);
}

.brand-mark .brand-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 9px;
    height: 9px;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    background: #ffd166;
}

.brand-text {
    display: inline-flex;
    align-items: baseline;
    color: var(--text-main);
}

.brand-text strong {
    font-size: 1.25rem;
    font-weight: 800;
}

.brand-text small {
    color: var(--fresh);
    font-size: 1.05rem;
    font-weight: 800;
}

.auth-panel {
    display: grid;
    gap: 34px;
}

.auth-copy h1 {
    max-width: 640px;
    margin: 16px 0 14px;
    font-family: var(--font-thai);
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 800;
    line-height: 1.08;
}

.auth-copy p {
    max-width: 590px;
    margin: 0;
    color: var(--text-muted);
    font-family: var(--font-thai);
    font-size: 1.06rem;
    line-height: 1.8;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--brand);
    font-size: 0.88rem;
    font-weight: 800;
}

.auth-note,
.benefit-list {
    display: grid;
    max-width: 620px;
    gap: 12px;
}

.auth-note {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 18px;
    border: 1px solid rgba(21, 101, 216, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.76);
}

.auth-note > i {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 10px;
    background: #eff6ff;
    color: var(--brand);
}

.auth-note strong,
.auth-note span {
    display: block;
}

.auth-note span {
    margin-top: 4px;
    color: var(--text-muted);
}

.benefit-list div {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-weight: 700;
}

.benefit-list i {
    color: #047857;
    font-size: 1.15rem;
}

.auth-card {
    padding: 28px;
    border: 1px solid rgba(148, 163, 184, 0.42);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 28px 70px rgba(17, 24, 39, 0.14);
}

.auth-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.auth-card h2 {
    margin: 0;
    font-family: var(--font-thai);
    font-size: 1.55rem;
    font-weight: 800;
}

.auth-card p {
    margin: 5px 0 0;
    color: var(--text-muted);
}

.auth-card a {
    color: var(--brand);
    font-weight: 800;
    text-decoration: none;
}

.auth-card a:hover {
    text-decoration: underline;
}

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

.resend-box {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(21, 101, 216, 0.18);
    border-radius: 8px;
    background: #f7fbff;
}

.resend-box p {
    margin: 0;
    color: #52627a;
    font-size: 0.92rem;
}

.form-label {
    color: var(--text-main);
    font-weight: 700;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-with-icon .form-control {
    height: 48px;
    padding-left: 42px;
    border-radius: 10px;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.auth-terms {
    font-size: 0.9rem;
    line-height: 1.65;
}

.btn {
    border-radius: 10px;
    font-weight: 800;
}

.btn-primary {
    background: var(--brand);
    border-color: var(--brand);
    box-shadow: 0 12px 26px rgba(21, 101, 216, 0.18);
}

.btn-primary:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
}

.auth-footer {
    display: grid;
    min-height: 84px;
    place-items: center;
    padding: 24px;
    background: #111827;
    color: #d1d5db;
    text-align: center;
}

@media (max-width: 991.98px) {
    .auth-page {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 28px 0;
    }

    .auth-panel {
        gap: 22px;
    }
}

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

    .auth-card-top,
    .auth-options {
        align-items: stretch;
        flex-direction: column;
    }
}
