/* ============================================
   StackGain Auth — Styles
   ============================================ */

/* --- Keyframes --- */
@keyframes sgauth-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes sgauth-slide-up {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes sgauth-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-12px, 14px) scale(1.06); }
}

@keyframes sgauth-shake {
    0%, 100% { transform: translateX(0); }
    20%      { transform: translateX(-5px); }
    40%      { transform: translateX(5px); }
    60%      { transform: translateX(-4px); }
    80%      { transform: translateX(3px); }
}

@keyframes sgauth-spin {
    to { transform: rotate(360deg); }
}

@keyframes sgauth-alert-enter {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes sgauth-strength-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.7; }
}

@keyframes sgauth-dot-drift {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    25%      { transform: translate(30px, -40px) scale(1.3); opacity: 0.8; }
    50%      { transform: translate(-20px, -20px) scale(0.8); opacity: 0.25; }
    75%      { transform: translate(15px, -50px) scale(1.1); opacity: 0.6; }
}

/* --- CSS Custom Properties --- */
.sgauth-auth-shell {
    --sgauth-bg: radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 30%),
        radial-gradient(circle at bottom right, rgba(234, 88, 12, 0.12), transparent 28%),
        linear-gradient(180deg, #f6f9ff 0%, #eef3fb 100%);
    --sgauth-card: rgba(255, 255, 255, 0.88);
    --sgauth-border: rgba(15, 23, 42, 0.08);
    --sgauth-text: #0f172a;
    --sgauth-muted: #64748b;
    --sgauth-primary: #1d4ed8;
    --sgauth-primary-strong: #1e3a8a;
    --sgauth-secondary: #ea580c;
    --sgauth-secondary-strong: #c2410c;
    --sgauth-success-bg: rgba(22, 163, 74, 0.1);
    --sgauth-success-text: #166534;
    --sgauth-error-bg: rgba(220, 38, 38, 0.08);
    --sgauth-error-text: #991b1b;
    --sgauth-valid: #16a34a;
    --sgauth-invalid: #dc2626;
    --sgauth-strength-weak: #dc2626;
    --sgauth-strength-fair: #f59e0b;
    --sgauth-strength-good: #16a34a;
    --sgauth-strength-strong: #16a34a;
    --sgauth-icon-color: #94a3b8;
    max-width: 1160px;
    margin: 0 auto;
    padding: 32px 18px;
    font-family: "Manrope", "DM Sans", "Segoe UI", sans-serif;
}

/* --- Entrance animations --- */
.sgauth-auth-shell {
    animation: sgauth-fade-in 0.5s ease both;
}

.sgauth-auth-brand {
    animation: sgauth-slide-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

.sgauth-auth-card {
    animation: sgauth-slide-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.sgauth-auth-brand__item {
    animation: sgauth-slide-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.sgauth-auth-brand__item:nth-child(1) { animation-delay: 0.35s; }
.sgauth-auth-brand__item:nth-child(2) { animation-delay: 0.45s; }
.sgauth-auth-brand__item:nth-child(3) { animation-delay: 0.55s; }

/* --- Grid layout --- */
.sgauth-auth-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    gap: 24px;
    align-items: stretch;
}

.sgauth-auth-brand,
.sgauth-auth-card {
    border-radius: 30px;
    border: 1px solid var(--sgauth-border);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.08);
}

/* --- Brand panel --- */
.sgauth-auth-brand {
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.08), transparent 26%),
        linear-gradient(140deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 58, 138, 0.97) 56%, rgba(234, 88, 12, 0.92) 100%);
    color: #fff;
    padding: 34px;
    position: relative;
    overflow: hidden;
}

.sgauth-auth-brand::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    top: -80px;
    right: -40px;
    animation: sgauth-float 8s ease-in-out infinite;
}

.sgauth-brand-dot {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    pointer-events: none;
    animation: sgauth-dot-drift 12s ease-in-out infinite;
    z-index: 1;
}

.sgauth-auth-brand__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    margin-bottom: 18px;
}

.sgauth-brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.sgauth-brand-logo__asset,
.sgauth-brand-logo__fallback {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.12);
    flex-shrink: 0;
}

.sgauth-brand-logo__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sgauth-brand-logo__fallback {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.sgauth-brand-logo__name {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
}

.sgauth-brand-logo__tagline {
    margin-top: 4px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.6;
}

.sgauth-auth-brand__title {
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin: 0 0 14px;
    color: #fff !important;
}

.sgauth-auth-brand__copy {
    font-size: 15px;
    line-height: 1.8;
    max-width: 580px;
    opacity: 0.9;
}

.sgauth-auth-brand__list {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.sgauth-auth-brand__item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
}

.sgauth-auth-brand__item-badge {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.sgauth-auth-brand__item strong {
    display: block;
    margin-bottom: 4px;
}

.sgauth-auth-brand__item span {
    display: block;
    opacity: 0.84;
    font-size: 13px;
    line-height: 1.7;
}

.sgauth-auth-brand__status {
    margin-top: 22px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.sgauth-auth-brand__status-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    opacity: 0.72;
    margin-bottom: 8px;
}

.sgauth-auth-brand__status-value {
    font-size: 14px;
    line-height: 1.7;
    color: #fff;
}

/* --- Card (form panel) --- */
.sgauth-auth-card {
    background: var(--sgauth-card);
    backdrop-filter: blur(14px);
    padding: 32px 30px;
    color: var(--sgauth-text);
    position: relative;
}

.sgauth-auth-card__eyebrow {
    color: var(--sgauth-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    margin-bottom: 12px;
}

.sgauth-auth-card__title {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--sgauth-text) !important;
}

.sgauth-auth-card__copy {
    margin: 0 0 22px;
    font-size: 14px;
    color: var(--sgauth-muted);
    line-height: 1.7;
}

.sgauth-auth-card__copy strong {
    color: var(--sgauth-text);
}

/* --- Form --- */
.sgauth-auth-form {
    display: grid;
    gap: 16px;
}

.sgauth-auth-field {
    display: grid;
    gap: 8px;
}

.sgauth-auth-label {
    font-size: 13px;
    font-weight: 800;
    color: #334155;
    transition: color 0.2s ease;
}

.sgauth-auth-field:focus-within .sgauth-auth-label {
    color: var(--sgauth-primary);
}

.sgauth-auth-input-wrap {
    position: relative;
}

/* --- Input base --- */
.sgauth-auth-input {
    width: 100%;
    min-height: 54px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.96);
    padding: 14px 16px;
    color: var(--sgauth-text);
    font-size: 15px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

/* --- Input icons --- */
.sgauth-auth-input[type="email"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 14px center;
    background-size: 20px 20px;
    padding-left: 46px;
}

.sgauth-auth-input[autocomplete="username"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 14px center;
    background-size: 20px 20px;
    padding-left: 46px;
}

.sgauth-auth-input[autocomplete="current-password"],
.sgauth-auth-input[autocomplete="new-password"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 14px center;
    background-size: 20px 20px;
    padding-left: 46px;
    padding-right: 50px; /* room for eye toggle */
}

.sgauth-auth-input[name="confirm_password"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 14px center;
    background-size: 20px 20px;
    padding-left: 46px;
    padding-right: 50px;
}

/* --- Focus styles --- */
.sgauth-auth-input:focus {
    border-color: rgba(29, 78, 216, 0.42);
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.10);
}

.sgauth-auth-input:focus-visible {
    outline: 2px solid rgba(29, 78, 216, 0.35);
    outline-offset: 2px;
}

/* --- Validation states --- */
.sgauth-auth-input-wrap.sgauth-valid .sgauth-auth-input {
    border-color: rgba(22, 163, 74, 0.45);
    background-color: rgba(22, 163, 74, 0.03);
}

.sgauth-auth-input-wrap.sgauth-invalid .sgauth-auth-input {
    border-color: rgba(220, 38, 38, 0.45);
    background-color: rgba(220, 38, 38, 0.03);
}

/* focus overrides validation color */
.sgauth-auth-input-wrap.sgauth-valid .sgauth-auth-input:focus,
.sgauth-auth-input-wrap.sgauth-invalid .sgauth-auth-input:focus {
    border-color: rgba(29, 78, 216, 0.42);
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.10);
}

.sgauth-auth-input-wrap.sgauth-shake {
    animation: sgauth-shake 0.45s ease;
}

/* Validation checkmark for non-password fields */
.sgauth-auth-input-wrap.sgauth-valid::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: contain;
    pointer-events: none;
}

/* Hide checkmark on password fields (toggle button is there) */
.sgauth-auth-input-wrap:has(.sgauth-auth-toggle).sgauth-valid::after {
    display: none;
}

/* --- Field hint text --- */
.sgauth-auth-field-note {
    color: var(--sgauth-muted);
    font-size: 12px;
    line-height: 1.7;
}

/* --- Password toggle button --- */
.sgauth-auth-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.18s ease, background 0.18s ease;
    line-height: 0;
}

.sgauth-auth-toggle:hover {
    color: #334155;
    background: rgba(148, 163, 184, 0.1);
}

/* --- Caps Lock warning --- */
.sgauth-capslock-warning {
    display: none;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #b45309;
    line-height: 1;
}

.sgauth-capslock-warning.is-visible {
    display: flex;
}

.sgauth-capslock-warning__icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* --- Password strength meter --- */
.sgauth-password-strength {
    margin-top: 2px;
    display: grid;
    gap: 6px;
}

.sgauth-password-strength__track {
    height: 5px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
    overflow: hidden;
}

.sgauth-password-strength__bar {
    height: 100%;
    border-radius: 999px;
    width: 0;
    transition: width 0.35s ease, background 0.35s ease;
}

.sgauth-password-strength__text {
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.sgauth-strength--weak .sgauth-password-strength__bar {
    background: var(--sgauth-strength-weak);
}

.sgauth-strength--weak .sgauth-password-strength__text {
    color: var(--sgauth-strength-weak);
}

.sgauth-strength--fair .sgauth-password-strength__bar {
    background: var(--sgauth-strength-fair);
}

.sgauth-strength--fair .sgauth-password-strength__text {
    color: var(--sgauth-strength-fair);
}

.sgauth-strength--good .sgauth-password-strength__bar {
    background: var(--sgauth-strength-good);
}

.sgauth-strength--good .sgauth-password-strength__text {
    color: var(--sgauth-strength-good);
}

.sgauth-strength--strong .sgauth-password-strength__bar {
    background: var(--sgauth-strength-strong);
}

.sgauth-strength--strong .sgauth-password-strength__text {
    color: var(--sgauth-strength-strong);
}

/* --- Submit button --- */
.sgauth-auth-submit {
    min-height: 54px;
    border: 0;
    border-radius: 16px;
    background: var(--sgauth-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 18px 34px rgba(29, 78, 216, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease, background 0.18s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sgauth-auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 36px rgba(29, 78, 216, 0.22);
}

.sgauth-auth-submit:active {
    transform: translateY(0);
}

.sgauth-auth-submit.is-loading {
    opacity: 0.78;
    pointer-events: none;
}

.sgauth-auth-submit.is-success {
    background: var(--sgauth-valid);
    box-shadow: 0 18px 34px rgba(22, 163, 74, 0.22);
    pointer-events: none;
}

/* --- Loading spinner --- */
.sgauth-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: sgauth-spin 0.6s linear infinite;
    flex-shrink: 0;
}

/* --- Auth links --- */
.sgauth-auth-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.sgauth-auth-links a,
.sgauth-auth-helper a,
.sgauth-logout-link {
    color: var(--sgauth-primary-strong);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.15s ease;
}

.sgauth-auth-links a:hover,
.sgauth-auth-helper a:hover,
.sgauth-logout-link:hover {
    text-decoration: underline;
    color: var(--sgauth-primary);
}

.sgauth-auth-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #475569;
    font-weight: 600;
    user-select: none;
}

.sgauth-auth-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--sgauth-primary);
    cursor: pointer;
    margin: 0;
}

.sgauth-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--sgauth-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 4px;
}

.sgauth-auth-divider::before,
.sgauth-auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(148, 163, 184, 0.22);
}

.sgauth-auth-helper {
    margin-top: 12px;
    color: var(--sgauth-muted);
    font-size: 14px;
    line-height: 1.7;
}

.sgauth-auth-footnote {
    margin-top: 2px;
    padding-top: 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    color: var(--sgauth-muted);
    font-size: 12px;
    line-height: 1.8;
}

/* --- Alerts --- */
.sgauth-alert {
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.6;
}

.sgauth-alert--enter {
    animation: sgauth-alert-enter 0.35s ease both;
}

.sgauth-alert--success {
    background: var(--sgauth-success-bg);
    color: var(--sgauth-success-text);
    border: 1px solid rgba(22, 163, 74, 0.14);
}

.sgauth-alert--error {
    background: var(--sgauth-error-bg);
    color: var(--sgauth-error-text);
    border: 1px solid rgba(220, 38, 38, 0.12);
}

/* --- Utility cards (user, protected) --- */
.sgauth-user-card,
.sgauth-protected-prompt {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
}

.sgauth-protected-prompt p,
.sgauth-user-card p {
    margin-top: 0;
}

/* --- User card layout --- */
.sgauth-user-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sgauth-user-card__avatar {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

.sgauth-user-card__avatar-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sgauth-user-card__body {
    min-width: 0;
}

.sgauth-user-card__name {
    font-size: 18px;
    font-weight: 800;
    color: var(--sgauth-text);
    margin-bottom: 8px;
    line-height: 1.2;
}

.sgauth-user-card__detail {
    font-size: 14px;
    color: var(--sgauth-muted);
    line-height: 1.6;
}

.sgauth-user-card__detail span {
    display: inline-block;
    min-width: 70px;
    font-weight: 700;
    color: #475569;
}

/* --- Protected prompt icon --- */
.sgauth-protected-prompt {
    text-align: center;
}

.sgauth-protected-prompt__icon {
    margin-bottom: 12px;
    color: var(--sgauth-muted);
}

.sgauth-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    border: 0;
    background: var(--sgauth-primary);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.sgauth-button:hover {
    background: var(--sgauth-primary-strong);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(29, 78, 216, 0.2);
}

.sgauth-auth-links .sgauth-button,
.sgauth-auth-links .sgauth-logout-link {
    min-height: 46px;
    align-items: center;
}

.sgauth-auth-links .sgauth-logout-link {
    display: inline-flex;
    justify-content: center;
    padding: 0 16px;
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.14);
}

/* --- Responsive --- */
@media (max-width: 960px) {
    .sgauth-auth-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .sgauth-auth-shell {
        padding: 18px 0;
    }

    .sgauth-auth-brand,
    .sgauth-auth-card {
        border-radius: 24px;
        padding: 24px 20px;
    }

    .sgauth-auth-links {
        flex-direction: column;
    }

    .sgauth-brand-logo {
        align-items: flex-start;
    }

    .sgauth-auth-card__title {
        font-size: 24px;
    }

    .sgauth-auth-brand__title {
        font-size: clamp(26px, 7vw, 36px);
    }

    /* sticky submit button */
    .sgauth-auth-submit {
        position: sticky;
        bottom: 0;
        z-index: 10;
        border-radius: 0;
        margin-left: -20px;
        margin-right: -20px;
        margin-bottom: -24px;
        width: calc(100% + 40px);
        box-shadow: 0 -8px 25px rgba(15, 23, 42, 0.1);
    }

    .sgauth-user-card {
        flex-direction: column;
        text-align: center;
    }

    .sgauth-user-card__detail span {
        display: block;
        min-width: 0;
        margin-bottom: 2px;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }
}
