/* Identity pages (Account/*) use Bootstrap class names from the template.
   This maps them to the site look. Scoped to .account-area (AccountLayout). */

.account-area { color: #2b2520; }
.account-area h1 { font-family: "Young Serif", Georgia, serif; font-size: 2.25rem; line-height: 1.2; margin-bottom: .5rem; }
.account-area h2 { font-size: 1.15rem; font-weight: 700; margin: 1.25rem 0 .5rem; }
.account-area h3 { font-size: 1.05rem; font-weight: 700; margin: 1rem 0 .5rem; }
.account-area h4 { font-weight: 700; margin: 1rem 0 .5rem; }
.account-area p { margin: .5rem 0; }
.account-area hr { border: 0; border-top: 1px solid #ebe4d6; margin: 1.25rem 0; }
.account-area a { color: #7a2e22; text-decoration: underline; text-underline-offset: 3px; }

/* Grid */
.account-area .row { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 992px) {
    .account-area .row { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .account-area .col-lg-3 { grid-column: span 3; }
    .account-area .col-lg-4 { grid-column: span 4; }
    .account-area .col-lg-6, .account-area .col-xl-6, .account-area .col-md-6 { grid-column: span 6; }
    .account-area .col-lg-9 { grid-column: span 9; }
    .account-area .col-md-4 { grid-column: span 5; }
    .account-area .col-md-12 { grid-column: span 12; }
    .account-area .col-lg-offset-2 { grid-column: 8 / span 5; }
}
.account-area .row > section,
.account-area .row > div > section { background: #fff; border: 1px solid #ebe4d6; border-radius: 1.5rem; padding: 1.5rem; }

/* Forms */
.account-area .mb-3 { margin-bottom: 1rem; }
.account-area .form-floating { display: flex; flex-direction: column-reverse; }
.account-area .form-label,
.account-area .control-label { display: block; font-size: .875rem; font-weight: 700; color: #4c433b; margin-bottom: .25rem; }
.account-area .form-control { width: 100%; border: 1px solid #ebe4d6; border-radius: .75rem; background: #fff; padding: .65rem .75rem; font-size: 1rem; }
.account-area .form-control:focus { outline: none; border-color: #3e5a3a; box-shadow: 0 0 0 3px rgba(62, 90, 58, .25); }
.account-area .form-control::placeholder { color: transparent; }
.account-area .checkbox label { display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.account-area .form-check-input { width: 1.1rem; height: 1.1rem; }
.account-area .input-group { display: flex; }
.account-area .input-group .form-control { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.account-area .input-group-text { display: flex; align-items: center; padding: 0 .75rem; border: 1px solid #ebe4d6; border-left: 0; border-radius: 0 .75rem .75rem 0; background: #e1e8d9; color: #3e5a3a; font-weight: 700; }
.account-area .text-danger { color: #b42318; font-size: .875rem; }
.account-area .text-danger ul { padding-left: 1.2rem; list-style: disc; }
.account-area .text-success { color: #3e5a3a; }
.account-area .text-secondary, .account-area .text-info { color: #6f6357; }
.account-area .w-100 { width: 100%; }
.account-area .d-flex { display: flex; }
.account-area .flex-column { flex-direction: column; }
.account-area .mx-auto { margin-left: auto; margin-right: auto; }

/* Buttons */
.account-area .btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 9999px; padding: .6rem 1.25rem; font-weight: 700; cursor: pointer; border: 0; text-decoration: none; }
.account-area .btn-lg { padding: .8rem 1.5rem; font-size: 1.05rem; }
.account-area .btn-primary { background: #7a2e22; color: #fdfbf7; }
.account-area .btn-primary:hover { background: #5d2119; color: #fdfbf7; }
.account-area .btn-danger { background: #fff; color: #7a2e22; border: 2px solid #7a2e22; }
.account-area .btn-danger:hover { background: #f1dcd4; }
.account-area .btn-link { background: none; color: #7a2e22; text-decoration: underline; padding: .25rem .5rem; }

/* Alerts */
.account-area .alert { border-radius: .75rem; padding: .75rem 1rem; margin: 1rem 0; border: 1px solid transparent; }
.account-area .alert-success { background: #e1e8d9; color: #33492f; border-color: #c5d3ba; }
.account-area .alert-danger { background: #fdecea; color: #8a1c12; border-color: #f5c2bc; }
.account-area .alert-warning { background: #f3e6c3; color: #5c4510; border-color: #e6cf8f; }
.account-area .alert-info { background: #f4eee2; color: #2b2520; border-color: #ebe4d6; }

/* Manage menu */
.account-area .nav { display: flex; list-style: none; padding: 0; margin: 0; gap: .25rem; }
.account-area .flex-column.nav { flex-direction: column; }
.account-area .nav-link { display: block; padding: .5rem .75rem; border-radius: .75rem; color: #2b2520; text-decoration: none; font-weight: 600; }
.account-area .nav-link:hover { background: #f4eee2; }
.account-area .nav-link.active { background: #7a2e22; color: #fdfbf7; }

/* Tables and recovery codes */
.account-area .table { width: 100%; border-collapse: collapse; }
.account-area .table th, .account-area .table td { border-bottom: 1px solid #ebe4d6; padding: .5rem; text-align: left; }
.account-area .recovery-code { font-family: ui-monospace, monospace; }
