
.auth-open {
    overflow: hidden;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 0.9fr) minmax(430px, 1.1fr);
    background: var(--background);
}

.auth-visual {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(28px, 5vw, 64px);
    background:
        radial-gradient(
            circle at 20% 15%,
            rgba(96, 165, 250, 0.35),
            transparent 22rem
        ),
        linear-gradient(145deg, #0f172a, #172554);
    color: #ffffff;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    width: fit-content;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 780;
}

.auth-visual-copy {
    max-width: 620px;
}

.auth-visual-copy h1 {
    margin: 0;
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.auth-visual-copy > p:last-child {
    max-width: 560px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.03rem;
    line-height: 1.65;
}

.auth-feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.auth-feature-list span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.82rem;
}

.auth-panel {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 28px;
}

.auth-card {
    width: min(440px, 100%);
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.auth-card-heading h2,
.auth-card-heading p {
    margin: 0;
}

.auth-card-heading h2 {
    margin-top: 4px;
    font-size: 2rem;
    letter-spacing: -0.045em;
}

.auth-card-heading > p:last-child {
    margin-top: 8px;
    color: var(--muted);
}

.auth-card form {
    display: grid;
    gap: 15px;
    margin-top: 24px;
}

.auth-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
}

.auth-success {
    margin: 0;
    color: var(--success);
    font-size: 0.84rem;
}

.password-field {
    position: relative;
}

.password-field input {
    width: 100%;
    padding-right: 46px;
}

.password-field button {
    position: absolute;
    top: 50%;
    right: 9px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
}

.sidebar-logout-button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: calc(100% - 22px);
    margin: 8px 11px 16px;
    padding: 11px 13px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-weight: 650;
}

.sidebar-logout-button:hover {
    background: rgba(220, 38, 38, 0.08);
    color: var(--danger);
}

.confirm-dialog {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 16px;
    max-width: 480px;
}

.confirm-dialog-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 17px;
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
}

.confirm-dialog h2,
.confirm-dialog p {
    margin: 0;
}

.confirm-dialog p {
    margin-top: 7px;
    color: var(--muted);
    line-height: 1.55;
}

.confirm-dialog .modal-actions {
    grid-column: 1 / -1;
}

.danger-button {
    background: var(--danger) !important;
}

#save-profile-button:disabled {
    opacity: 0.72;
    cursor: default;
}

.profile-section-card select,
.profile-section-card input[type="date"],
.profile-section-card input[type="month"],
.profile-section-card input[type="number"],
.profile-section-card input[type="email"],
.profile-section-card input[type="text"],
.profile-section-card textarea {
    min-height: 48px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background-color: var(--surface-solid);
    color: var(--text);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.4) inset;
    transition:
        border-color 150ms ease,
        box-shadow 150ms ease,
        transform 150ms ease;
}

.profile-section-card select {
    appearance: none;
    padding-right: 42px;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--muted) 50%),
        linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 2px),
        calc(100% - 13px) calc(50% - 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.profile-section-card input[type="date"] {
    color-scheme: light;
}

html[data-exhale-theme="dark"]
.profile-section-card input[type="date"] {
    color-scheme: dark;
}

.profile-section-card input:focus,
.profile-section-card select:focus,
.profile-section-card textarea:focus {
    border-color: var(--primary);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.profile-section-card input[readonly] {
    background: var(--surface-soft);
    color: var(--muted);
    cursor: not-allowed;
}

@media (max-width: 850px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        display: none;
    }

    .auth-panel {
        min-height: 100vh;
    }
}


.account-action-list {
    display: grid;
}

.danger-copy {
    margin: 0 0 18px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(220, 38, 38, 0.08);
    color: var(--muted);
    line-height: 1.55;
}

.danger-copy strong {
    color: var(--danger);
}
