/* =====================================================================
   GRAVE — AUTH / PORTAL PAGES
   Shared styling for login, signup, forgot/reset-password, and the
   customer portal. Reuses design tokens + .btn/.card from style.css.
   ===================================================================== */

.auth-shell {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-height) + 40px) 20px 60px;
    z-index: 1;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 40px 36px;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin-bottom: 28px;
}
.auth-brand img { width: 30px; height: 30px; object-fit: contain; }
.auth-brand span { font-size: 15px; font-weight: 600; letter-spacing: -0.2px; }

.auth-card h1 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
    text-align: center;
    margin-bottom: 8px;
}
.auth-card .auth-sub {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.6;
    margin-bottom: 28px;
}

.field { margin-bottom: 18px; }
.field label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 8px;
}
.field input,
.field select {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 14px;
    color: var(--text);
    font-family: inherit;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.field input::placeholder { color: var(--text-dim); }
.field input:focus,
.field select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.05);
}
.field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
.field select option { background: #111; color: #fff; }

.form-msg {
    font-size: 13px;
    line-height: 1.5;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    display: none;
}
.form-msg.show { display: block; }
.form-msg.error {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
}
.form-msg.success {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.auth-foot {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 22px;
}
.auth-foot a { color: var(--text); font-weight: 500; }
.auth-foot a:hover { text-decoration: underline; }

.btn[disabled] { opacity: 0.55; cursor: not-allowed; pointer-events: none; }

/* ---------------------------------------------------------------------
   Portal dashboard
   --------------------------------------------------------------------- */
.portal-shell {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    padding: calc(var(--nav-height) + 48px) 20px 80px;
}
.portal-head { margin-bottom: 36px; }
.portal-head h1 { font-size: 30px; font-weight: 600; letter-spacing: -0.6px; margin-bottom: 6px; }
.portal-head p { color: var(--text-secondary); font-size: 14px; }

.portal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.portal-card { padding: 26px 28px; }
.portal-card h2 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-dim);
    margin-bottom: 18px;
}

.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.status-row:last-child { border-bottom: none; }
.status-row .label { color: var(--text-secondary); }
.status-row .value { font-weight: 500; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.04);
}
.badge::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--text-dim);
}
.badge.active::before { background: #fff; box-shadow: 0 0 8px rgba(255,255,255,0.7); }
.badge.pending::before { background: rgba(255,255,255,0.35); }

.portal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

.portal-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    background: rgba(5,5,5,0.72);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border-bottom: 1px solid var(--border);
}

@media (max-width: 560px) {
    .auth-card { padding: 32px 22px; }
    .portal-card { padding: 22px 20px; }
}
