/* Shared, server-rendered Identity forms in the customer app shell. */
.identity-app { padding-bottom: 24px; }
.identity-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 17px max(30px, calc((100vw - 1220px) / 2)); border-bottom: 1px solid var(--daily-line); background: var(--daily-surface); }
.identity-header .daily-brand-marks { --studio-mark-height: 76px; }
.identity-back { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0; min-height: 44px; color: var(--daily-muted); font-size: 13px; }
.identity-back .daily-icon { width: 18px; height: 18px; }
.identity-auth-main { display: grid; grid-template-columns: .85fr 1fr; align-items: stretch; width: min(100% - 64px, 980px); margin: 44px auto; border: 1px solid var(--daily-line); border-radius: 24px; overflow: hidden; background: var(--daily-surface); box-shadow: 0 12px 40px #302b2905; }
.identity-photo-panel { position: relative; min-height: 580px; overflow: hidden; background: #403e32; }
.identity-photo-panel > img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 55% 50%; }
.identity-photo-panel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 15%, #28291bce); }
.identity-photo-panel > div { position: absolute; z-index: 1; inset: auto 34px 38px; }
.identity-photo-panel span { font-size: 12px; color: #f6f3ec; }
.identity-photo-panel p { font: 42px/1.14 var(--serif); letter-spacing: -.035em; color: white; margin-top: 13px; }
.identity-form-card { padding: 40px; align-self: center; min-width: 0; }
.identity-form-card h1 { font-size: clamp(32px, 3vw, 40px); line-height: 1.12; margin: 0 0 28px; overflow-wrap: break-word; }
.identity-form-card h2 { font: 20px/1.3 var(--serif); margin-bottom: 18px; }
.identity-form-card h3 { margin: 20px 0 16px; font-size: 20px; }
.identity-app :is(.identity-form-card, .identity-settings-card) p { color: var(--daily-muted); font-size: 14px; line-height: 1.65; margin-bottom: 18px; overflow-wrap: anywhere; }
.identity-app :is(.identity-form-card, .identity-settings-card) p a:not(.btn, .button) { color: #4d603f; text-decoration: underline; text-underline-offset: 3px; padding-block: 7px; }
.identity-app .row { display: block; margin: 0; }
.identity-app .row > [class*='col-'] { width: 100%; max-width: none; padding: 0; }
.identity-app :is(.identity-form-card, .identity-settings-card) hr { border-color: var(--daily-line); opacity: 1; margin: 20px 0; }
.identity-app .form-floating { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px !important; }
.identity-app .form-floating > label { position: static; width: auto; height: auto; order: -1; padding: 0; color: var(--daily-ink); opacity: 1; font-size: 13px; line-height: 1.4; transform: none !important; white-space: normal; }
.identity-app .form-floating > label::after { display: none !important; }
.identity-app .form-control, .identity-app .form-floating > .form-control { width: 100%; height: auto; min-height: 52px; padding: 13px 14px !important; border: 1px solid #d7d4c8; border-radius: 11px; background: #fff; color: var(--daily-ink); font-size: 16px; line-height: 1.5; box-shadow: none; }
.identity-app .form-control::placeholder { color: transparent; }
.identity-app .form-control:disabled { background: #f2f1eb; color: #69665b; opacity: 1; }
.identity-app .form-control:focus { border-color: var(--daily-accent); box-shadow: 0 0 0 3px #626e5217; }
.identity-app .form-control.invalid { border-color: #a74231; }
.identity-app .form-label { color: var(--daily-ink); font-size: 13px; }
.identity-app .checkbox > label { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin: 0; cursor: pointer; }
.identity-app .checkbox input[type='checkbox'] { accent-color: var(--daily-accent); width: 19px; height: 19px; flex-shrink: 0; margin: 0; border-color: #a6ac99; border-radius: 4px; }
.identity-app .form-check-input:checked { background-color: var(--daily-accent); border-color: var(--daily-accent); }
.identity-app :is(.identity-form-card, .identity-settings-card) :is(.btn, .button) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; max-width: 100%; padding: 12px 18px; border-radius: 11px; font-size: 14px; font-weight: 600; line-height: 1.5; white-space: normal; text-align: center; }
.identity-app :is(.btn-primary, .button-dark) { background: var(--daily-accent); border: 1px solid var(--daily-accent); color: white; }
.identity-app :is(.btn-primary, .button-dark):hover { background: #4e5d3f; border-color: #4e5d3f; color: white; }
.identity-app .btn-danger { background: #914132; border-color: #914132; color: white; }
.identity-app .btn-danger:hover { background: #743326; color: white; }
.identity-app .btn-link { color: #4d603f; text-decoration: underline; text-underline-offset: 3px; }
.identity-app .text-danger, .identity-app .validation-message { color: #9c3529 !important; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.identity-app .validation-summary-errors { padding: 12px 14px; margin-bottom: 18px; border-radius: 11px; background: #faece7; }
.identity-app .validation-summary-errors ul { margin: 0; padding-left: 18px; }
.identity-app ul.text-danger[role="alert"] { padding: 14px 18px 14px 32px; margin-bottom: 18px; border-radius: 11px; background: #faece7; }
.identity-app .alert, .identity-app .notice { padding: 14px 16px; border-radius: 12px; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; margin: 0 0 20px; }
.identity-app .alert p:last-child { margin-bottom: 0; }
.identity-app .alert-success { background: #eaf0e2; border-color: #ccd9be; color: #435835; }
.identity-app .alert-danger { background: #faece7; border-color: #e6c7bb; color: #8f3529; }
.identity-app .alert-warning, .identity-app .notice { background: #f2ebdc; border-color: #ded1b7; color: #655436; }
.identity-login-options { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 12px; margin: -4px 0 17px; }
.identity-login-options > a { display: inline-flex; align-items: center; min-height: 44px; color: #4d603f; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.identity-auth-links { display: flex; flex-direction: column; align-items: stretch; margin-top: 12px; gap: 12px; }
.identity-secondary-action { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid var(--daily-line); border-radius: 11px; background: transparent; font-size: 14px; font-weight: 600; }
.identity-secondary-action:hover { background: var(--daily-soft); }
.identity-help-link { display: flex; align-items: center; justify-content: center; min-height: 44px; color: var(--daily-muted); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.identity-app p.identity-switch-account { margin: 20px 0 0; text-align: center; font-size: 13px; }
.identity-app p.quiet-note { font-size: 12px; line-height: 1.6; margin: -2px 0 20px; }
.identity-settings-main { width: min(100% - 64px, 1040px); margin: 36px auto; }
.identity-settings-main > h1 { font-size: clamp(32px, 3.2vw, 42px); line-height: 1.14; margin-bottom: 26px; }
.identity-settings-grid { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 28px; align-items: start; }
.identity-settings-nav { display: flex; flex-direction: column; gap: 7px; }
.identity-settings-nav a { display: flex; align-items: center; min-height: 48px; border: 1px solid transparent; border-radius: 11px; padding: 12px 16px; color: var(--daily-muted); font-size: 14px; line-height: 1.35; }
.identity-settings-nav a:hover { background: #eceee4; }
.identity-settings-nav a.active { color: #4b5d3d; border-color: #d9e0ce; background: var(--daily-soft); font-weight: 600; }
.identity-settings-card { border: 1px solid var(--daily-line); border-radius: 20px; padding: 30px; background: var(--daily-surface); min-width: 0; }
.identity-settings-card h3 { font: 28px/1.2 var(--serif); margin: 0 0 24px; }
.identity-settings-card h4 { font: 600 17px/1.4 var(--sans); margin: 20px 0 16px; }
.identity-settings-card > .btn { margin: 0 7px 12px 0; }
.identity-settings-card > form { margin-bottom: 18px; }
.identity-settings-card > form:last-child { margin-bottom: 0; }
.identity-settings-card .input-group-append { position: absolute; right: 14px; top: 37px; }
.identity-settings-card .input-group-text { background: transparent; border: none; padding: 0; color: #526b40; }
.identity-settings-card .input-group > .form-control { border-radius: 11px !important; padding-right: 38px !important; }
.identity-settings-card .table { --bs-table-bg: transparent; --bs-table-color: var(--daily-ink); --bs-table-border-color: var(--daily-line); table-layout: fixed; font-size: 14px; }
.identity-settings-card .table td { vertical-align: middle; overflow-wrap: anywhere; }
.identity-settings-card .table .btn { margin: 3px 3px 3px 0; }
.identity-settings-card :is(code, kbd, .recovery-code) { font-size: 13px; overflow-wrap: anywhere; }
.identity-settings-card .list { padding-left: 20px; }
.identity-settings-card .list li { margin-bottom: 20px; }
.identity-settings-card .list li::marker { color: var(--daily-accent); font-weight: 600; }
.identity-signout { margin: 20px 0 0 238px; }
.identity-signout button { display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px; min-height: 44px; font-size: 13px; color: var(--daily-muted); background: transparent; border: 1px solid var(--daily-line); border-radius: 10px; }
.identity-signout .daily-icon { width: 18px; height: 18px; }
.identity-signout button:hover { background: var(--daily-soft); }
@media (max-width: 1000px) {
    .identity-header { padding-inline: 24px; gap: 18px; }
    .identity-settings-app .daily-desktop-nav { display: none; }
    .identity-auth-main { width: min(100% - 48px, 850px); grid-template-columns: .75fr 1fr; }
    .identity-form-card { padding: 32px; }
    .identity-photo-panel > div { inset-inline: 26px; }
    .identity-photo-panel p { font-size: 35px; }
}
@media (max-width: 760px) {
    .identity-app { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
    .identity-header { padding: 14px 20px; gap: 12px; padding-top: max(14px, env(safe-area-inset-top, 0px)); }
    .identity-header .daily-brand-marks { --studio-mark-height: 66px; gap: 9px; }
    .identity-header .daily-wordmark { max-width: 130px; font-size: 10px; }
    .identity-back { font-size: 12px; gap: 6px; }
    .identity-auth-main { display: block; width: min(100% - 36px, 480px); margin: 26px auto 0; border-radius: 20px; }
    .identity-photo-panel { display: none; }
    .identity-form-card { padding: 26px 23px; }
    .identity-form-card h1 { font-size: 34px; margin-bottom: 26px; }
    .identity-settings-main { width: min(100% - 36px, 560px); margin: 26px auto 0; }
    .identity-settings-main > h1 { font-size: 34px; margin-bottom: 22px; }
    .identity-settings-grid { grid-template-columns: 1fr; gap: 18px; }
    .identity-settings-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
    .identity-settings-nav a { min-height: 44px; justify-content: center; padding: 10px 5px; background: var(--daily-surface); border-color: var(--daily-line); border-radius: 10px; text-align: center; font-size: 12px; }
    .identity-settings-card { padding: 24px 21px; }
    .identity-settings-card h3 { font-size: 27px; }
    .identity-settings-card .table, .identity-settings-card .table tbody, .identity-settings-card .table tr, .identity-settings-card .table td { display: block; width: 100%; }
    .identity-settings-card .table td { padding: 10px 0; border: 0; }
    .identity-settings-card .table tr { border-bottom: 1px solid var(--daily-line); padding-bottom: 10px; }
    .identity-signout { margin: 18px 0 0; }
}
@media (max-width: 420px) {
    .identity-header .daily-wordmark { display: none; }
}
@media (max-width: 360px) {
    .identity-header { padding-inline: 16px; }
    .identity-auth-main, .identity-settings-main { width: calc(100% - 28px); }
    .identity-form-card, .identity-settings-card { padding: 23px 18px; }
    .identity-form-card h1, .identity-settings-main > h1 { font-size: 31px; }
    .identity-login-options { gap: 0 8px; }
    .identity-login-options > a, .identity-login-options .form-label { font-size: 12px; }
}
