/* Styles the authenticated settings page and leaves room for more settings sections later. */
* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    line-height: 1.5;
    color: #172033;
    background: #f6f8fb;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 960px;
    margin: 0 auto;
    padding: 18px 20px;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #0b2a3a;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 800;
}

.brand-mark {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.settings-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link,
.primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid #c7d2dc;
    background: #ffffff;
    color: #006b8f;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

.settings-shell {
    width: min(960px, calc(100% - 32px));
    margin: 24px auto 72px;
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.settings-sidebar,
.settings-panel {
    border: 1px solid #d7e0e7;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(34, 48, 72, 0.08);
}

.settings-sidebar {
    padding: 8px;
}

.settings-tab {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 6px;
    color: #425466;
    text-decoration: none;
    font-weight: 700;
}

.settings-tab.active {
    color: #073346;
    background: #e8f7fb;
}

.settings-panel {
    padding: 24px;
}

.settings-panel-heading {
    margin-bottom: 24px;
}

.section-label {
    margin: 0 0 6px;
    color: #667085;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.settings-panel h1 {
    margin: 0 0 8px;
    color: #0b2a3a;
    font-size: 1.65rem;
    line-height: 1.2;
}

.settings-panel p {
    margin: 0;
    color: #546173;
}

.password-form {
    display: grid;
    gap: 16px;
    max-width: 520px;
}

.field {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    min-height: 52px;
    color: #3d4858;
    font-size: 0.9rem;
    font-weight: 700;
}

.field input {
    width: 100%;
    min-height: 52px;
    padding: 0 12px;
    border: 1px solid #c7d2dc;
    border-radius: 8px;
    background: #ffffff;
    color: #172033;
    font: inherit;
    font-weight: 500;
}

.field input:focus {
    outline: 3px solid #b9ecf7;
    border-color: #006d8f;
}

.form-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding-top: 4px;
}

.primary-action {
    min-height: 52px;
    border: 0;
    color: #ffffff;
    background: #006d8f;
}

.primary-action:disabled {
    cursor: progress;
    opacity: 0.68;
}

.password-status {
    min-height: 44px;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 700;
}

.password-status.success {
    color: #0c5132;
    background: #dff7e8;
}

.password-status.error {
    color: #8f1d1d;
    background: #fee4e2;
}

.password-status.info {
    color: #27506b;
    background: #e8f1f7;
}

@media (max-width: 760px) {
    header,
    .settings-shell,
    .field,
    .form-footer {
        grid-template-columns: 1fr;
    }

    header,
    .settings-nav {
        display: grid;
    }

    .settings-nav,
    .primary-action {
        width: 100%;
    }
}
