/* SAS Connect identity for sign-in and workspace selection. */
.auth-page {
    background: #fff;
    color: var(--text);
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 100vh;
    min-height: 100svh;
    padding: 24px;
    gap: 24px;
    max-width: 1800px;
    margin: 0 auto;
}

.auth-story {
    min-width: 0;
    min-height: 620px;
    padding: clamp(32px, 4vw, 72px);
    border-radius: 20px;
    background: linear-gradient(150deg, #4c6edc -35%, #382854 55%, #0f032d 140%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 48px;
}

.auth-product {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #e4def0;
    font-size: 14px;
    line-height: 1.5;
}

.auth-product-name {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.03em;
}

.auth-story h2 {
    max-width: 12ch;
    margin: 0 0 28px;
    color: #fff;
    font-size: clamp(36px, 4.35vw, 68px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.035em;
    overflow-wrap: normal;
}

.auth-story-copy p {
    max-width: 35ch;
    margin: 0;
    color: #e4def0;
    font-size: 18px;
    line-height: 1.6;
}

.auth-company {
    display: block;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .24);
    color: #e4def0;
    font-size: 14px;
}

.auth-form-area {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px clamp(24px, 4vw, 72px);
}

.auth-form-content {
    width: 100%;
    max-width: 410px;
}

.auth-logo {
    display: block;
    width: min(100%, 258px);
    height: auto;
    margin-bottom: 48px;
}

.auth-heading { margin-bottom: 32px; }
.auth-heading h1 {
    margin: 0 0 12px;
    font-size: clamp(26px, 2.3vw, 34px);
    line-height: 1.2;
    letter-spacing: -.025em;
    font-weight: 700;
}
.auth-heading p {
    margin: 0;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
}
.auth-form .field { margin-bottom: 22px; }
.auth-form label {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
}
.auth-form input {
    min-height: 50px;
    padding: 12px 14px;
    font-size: 16px;
    border-radius: 10px;
    background: var(--surface);
}
.auth-form .btn {
    margin-top: 6px;
    min-height: 50px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
}
.auth-form input:focus-visible,
.auth-form .btn:focus-visible {
    box-shadow: none;
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}
.auth-alert-icon { flex: 0 0 auto; }
.auth-form-content .alert { align-items: flex-start; }
.auth-form-content .login-hint {
    margin-top: 28px;
    padding: 16px;
    border-radius: 12px;
    line-height: 1.8;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.tenant-welcome {
    max-width: 640px;
    margin: 32px auto;
    padding: clamp(28px, 5vw, 56px);
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
}
.tenant-welcome-logo {
    display: block;
    width: min(100%, 220px);
    height: auto;
    margin: 0 0 36px;
}
.tenant-welcome h2 { margin-bottom: 12px; font-size: 28px; }
.tenant-welcome p {
    margin: 0 0 24px;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
}

@media (min-width: 1500px) {
    .auth-layout { padding: 40px; }
}

@media (max-width: 960px) {
    .auth-layout { padding: 16px; gap: 12px; }
    .auth-story { padding: 32px; }
    .auth-story h2 { font-size: 40px; }
    .auth-form-area { padding: 32px 24px; }
}

@media (max-width: 760px) {
    .auth-layout { display: block; padding: 0; }
    .auth-story { display: none; }
    .auth-form-area {
        min-height: 100vh;
        min-height: 100svh;
        align-items: flex-start;
        padding: clamp(32px, 8vh, 64px) 24px 36px;
        border-top: 6px solid var(--primary);
    }
    .auth-logo { width: 236px; margin-bottom: 40px; }
    .auth-heading { margin-bottom: 28px; }
    .auth-heading h1 { font-size: 28px; }
    .tenant-welcome { margin: 8px auto; padding: 28px 24px; }
}

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