/**
 * Suji Core Auth — Luxury Wedding Login / Register / Reset Screens
 */

.sc-auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    background: var(--sc-bg);
}

.sc-auth-shell--single {
    display: block;
    padding: 20px;
}

/* Left Editorial Brand Panel */
.sc-auth-aside {
    background: linear-gradient(155deg, var(--sc-brand, #80141b) 0%, #3d090d 100%);
    color: #fff;
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.sc-auth-aside::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 15%, rgba(201, 162, 106, 0.22), transparent 55%),
                radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.08), transparent 50%);
    pointer-events: none;
}

.sc-auth-aside__inner {
    position: relative;
    z-index: 2;
    max-width: 460px;
    width: 100%;
}

.sc-auth-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-family: var(--sc-font-serif);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 40px;
}

.sc-auth-brand img {
    max-height: 46px;
    width: auto;
    filter: brightness(0) invert(1);
}

.sc-auth-kicker {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #f3d7a8;
    margin-bottom: 12px;
}

.sc-auth-aside__copy h2 {
    margin: 0 0 14px;
    font-family: var(--sc-font-serif);
    font-size: 38px;
    font-weight: 600;
    line-height: 1.18;
    color: #ffffff;
}

.sc-auth-aside__copy p {
    margin: 0 0 36px;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.84);
}

.sc-auth-highlights {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sc-auth-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.sc-auth-highlights__icon {
    font-size: 20px;
    line-height: 1.2;
}

.sc-auth-highlights strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
}

.sc-auth-highlights span {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.5;
}

/* Right Form Column */
.sc-auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 24px;
}

.sc-auth-card {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border: 1px solid var(--sc-border);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 14px 40px -12px rgba(42, 37, 32, 0.09);
}

.sc-auth-embed {
    max-width: 440px;
    margin: 24px auto;
    background: #fff;
    border: 1px solid var(--sc-border);
    border-radius: 20px;
    padding: 30px;
    font-family: var(--sc-font-sans);
}

.sc-auth-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.sc-auth-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--sc-text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.sc-auth-back:hover {
    color: var(--sc-brand);
}

.sc-auth-head {
    margin-bottom: 24px;
}

.sc-auth-title {
    margin: 0 0 6px;
    font-size: 25px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.sc-auth-subtitle {
    margin: 0;
    font-size: 14px;
    color: var(--sc-text-muted);
    line-height: 1.55;
}

/* Forms */
.sc-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sc-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.sc-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sc-field__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sc-field label {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.sc-req { color: #dc2626; }

.sc-field__link {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--sc-brand);
    text-decoration: none;
}

.sc-field__link:hover { text-decoration: underline; }

.sc-field input[type="text"],
.sc-field input[type="email"],
.sc-field input[type="tel"],
.sc-field input[type="password"] {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    color: #0f172a;
    background: #fff;
    transition: border-color 0.16s, box-shadow 0.16s;
}

.sc-field input:focus {
    outline: none;
    border-color: var(--sc-brand);
    box-shadow: 0 0 0 3px rgba(128, 20, 27, 0.14);
}

.sc-field input:disabled {
    background: #f8fafc;
    color: #64748b;
}

.sc-pw-wrap {
    position: relative;
}

.sc-pw-wrap input {
    padding-right: 44px !important;
}

.sc-pw-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #94a3b8;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.sc-pw-toggle:hover {
    color: #334155;
    background: #f1f5f9;
}

/* Password Strength Meter */
.sc-pw-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
}

.sc-pw-strength__bar {
    flex: 1;
    height: 4px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.sc-pw-strength__bar span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    transition: width 0.2s ease, background 0.2s ease;
}

.sc-pw-strength__text {
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
    min-width: 68px;
    text-align: right;
}

.sc-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    user-select: none;
}

.sc-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--sc-brand);
}

.sc-form-alert {
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}

.sc-form-alert.is-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.sc-form-alert.is-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.sc-btn-submit {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 11px;
    background: var(--sc-brand);
    color: #fff;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 18px rgba(128, 20, 27, 0.22);
    transition: all 0.18s ease;
}

.sc-btn-submit:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.sc-btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.sc-btn-submit__spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: scSpin 0.65s linear infinite;
}

.sc-btn-submit.is-loading .sc-btn-submit__spinner {
    display: inline-block;
}

@keyframes scSpin {
    to { transform: rotate(360deg); }
}

/* Google OAuth Button & Divider */
.sc-btn-google {
    width: 100%;
    height: 46px;
    border-radius: 11px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    color: #1e293b;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.sc-btn-google:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.sc-btn-google:active {
    transform: scale(0.99);
}

.sc-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
}

.sc-auth-divider::before,
.sc-auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.sc-auth-switch {
    margin: 22px 0 0;
    text-align: center;
    font-size: 13.5px;
    color: var(--sc-text-muted);
}

.sc-auth-switch a {
    color: var(--sc-brand);
    font-weight: 700;
    text-decoration: none;
}

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

/* Pre-registration 6-digit Email OTP Verification */
.sc-form[hidden],
.sc-btn-google[hidden],
.sc-auth-divider[hidden] {
    display: none !important;
}

.sc-otp-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #faf7f2;
    border: 1px solid #ece3d8;
}

.sc-otp-banner__icon {
    font-size: 20px;
    line-height: 1.2;
    flex-shrink: 0;
}

.sc-otp-banner__text {
    margin: 0 0 4px;
    font-size: 13.5px;
    color: #0f172a;
    line-height: 1.5;
    word-break: break-word;
}

.sc-otp-banner__hint {
    margin: 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
}

.sc-field input.sc-otp-input {
    height: 56px;
    text-align: center;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 10px;
    padding-left: 22px;
    color: var(--sc-brand);
    background: #ffffff;
}

.sc-field input.sc-otp-input::placeholder {
    color: #cbd5e1;
    font-weight: 600;
}

.sc-otp-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 2px;
}

.sc-otp-link {
    background: none;
    border: none;
    padding: 4px 0;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--sc-brand);
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.sc-otp-link:hover:not(:disabled) {
    text-decoration: underline;
}

.sc-otp-link:disabled {
    color: #94a3b8;
    cursor: not-allowed;
}

.sc-otp-link--muted {
    color: #64748b;
    font-weight: 500;
}

.sc-otp-link--muted:hover {
    color: #0f172a;
}

@media (max-width: 960px) {
    .sc-auth-shell {
        grid-template-columns: 1fr;
    }
    .sc-auth-aside {
        display: none;
    }
    .sc-auth-main {
        padding: 24px 16px;
    }
    .sc-auth-card {
        padding: 24px 20px;
    }
}
