/* Auth pages — custom CSS, no framework (spec §5). Interim styling for the
   Phase 1 auth surface; the shared component library lands with the UI shell. */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    background: #f2f6f4;
    color: #303030;
    min-height: 100vh;
}

.auth-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.25rem;
}

.flash-wrap { width: 100%; max-width: 26rem; }

.flash {
    padding: 0.7rem 0.9rem;
    border-radius: 0.5rem;
    font-size: 0.88rem;
    margin-bottom: 0.9rem;
}
.flash-error   { background: #fdecec; color: #b3261e; border: 1px solid #f5c2c0; }
.flash-success { background: #eaf5ee; color: #1f6b3f; border: 1px solid #bfe3cd; }
.flash-warning { background: #fff5e6; color: #8a5a00; border: 1px solid #f0d9a8; }

.auth-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 1rem;
    width: 100%;
    max-width: 26rem;
    padding: 2.25rem;
}
.auth-card.wide { max-width: 34rem; }

.auth-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.7rem;
    background: linear-gradient(135deg, #2d7a4f, #3da066, #2d7a4f);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.auth-head h1 { font-size: 1.4rem; color: #1a2e1a; letter-spacing: -0.01em; }
.auth-head p { margin-top: 0.4rem; color: #727272; font-size: 0.93rem; line-height: 1.5; }

.auth-body { margin-top: 1.5rem; }

.field { margin-bottom: 1.1rem; }
.field-row { display: flex; justify-content: space-between; align-items: baseline; }
.field label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 0.35rem; }
.field input {
    display: block;
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    color: #303030;
    font-family: inherit;
}
.field input:focus {
    outline: none;
    border-color: #2b824f;
    box-shadow: 0 0 0 3px rgba(43, 130, 79, 0.12);
}
.field .hint { margin-top: 0.35rem; font-size: 0.78rem; color: #a0a0a0; }

.code-input {
    text-align: center;
    font-size: 1.8rem;
    letter-spacing: 0.4em;
    font-family: ui-monospace, 'Cascadia Code', monospace;
}

.btn {
    display: block;
    width: 100%;
    padding: 0.65rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
}
.btn-primary { background: #2b824f; color: #fff; }
.btn-primary:hover { background: #256e43; }
.btn-danger { background: #ee4343; color: #fff; width: auto; padding: 0.55rem 1.1rem; }
.btn-danger:hover { background: #d83a3a; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.link { color: #2b824f; font-size: 0.85rem; font-weight: 500; text-decoration: none; }
.link:hover { text-decoration: underline; }
.muted-link { color: #727272; font-size: 0.85rem; text-decoration: none; }
.muted-link:hover { color: #303030; }

.center { text-align: center; }
.mt { margin-top: 1.5rem; }
.attempts { font-size: 0.8rem; color: #c77700; text-align: center; margin-bottom: 0.8rem; font-weight: 500; }

.list {
    list-style: none;
    border: 1px solid #e0e0e0;
    border-radius: 0.7rem;
    overflow: hidden;
}
.list-item {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #efefef;
}
.list-item:last-child { border-bottom: none; }
.list-item.current { background: #f2f6f4; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .title { font-size: 0.9rem; font-weight: 500; }
.list-item .meta { font-size: 0.78rem; color: #727272; margin-top: 0.15rem; }

.row-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #efefef;
}
.row-link:last-child { border-bottom: none; }
.row-link:hover { background: #f2f6f4; }
.row-link .arrow { color: #a0a0a0; }

.badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: #eaf5ee;
    color: #1f6b3f;
}

.empty-box {
    border: 1px solid #e0e0e0;
    border-radius: 0.7rem;
    padding: 1.5rem;
    text-align: center;
    color: #727272;
    font-size: 0.9rem;
}

.actions-end { display: flex; justify-content: flex-end; margin-top: 1rem; }

.link-btn { background: none; border: none; padding: 0; cursor: pointer; font: inherit; }
.is-hidden { display: none; }
.spacer { width: 13px; flex: none; }
