/* ==========================================================================
   Account / Dashboard Styles
   ========================================================================== */

/* ---- Auth page: fill viewport exactly, no scroll ---- */
.oo-page-auth {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.oo-page-auth .oo-auth-box--hero {
    padding: var(--space-s) var(--space-m);
}

.oo-page-auth .oo-header {
    flex-shrink: 0;
}

.oo-page-auth .oo-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.oo-page-auth .oo-footer {
    flex-shrink: 0;
}

/* ---- Auth hero layout (form inside hero) ---- */
.oo-hero--auth {
    display: flex;
    align-items: center;
    min-height: 0 !important;
    flex: 1;
    padding-top: 5rem;
    padding-bottom: var(--space-s);
}

.oo-hero--auth .oo-hero-bg {
    opacity: 0.5;
}

.oo-auth-hero-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: var(--space-m);
}

.oo-auth-hero-text {
    text-align: center;
}

.oo-auth-hero-text .oo-hero-title {
    margin-bottom: var(--space-3xs);
}

.oo-auth-hero-text .oo-hero-description {
    font-size: var(--text-m);
}

.oo-auth-box--hero {
    background: linear-gradient(145deg, rgba(13, 110, 138, 0.6) 0%, rgba(5, 51, 62, 0.7) 50%, rgba(201, 149, 44, 0.3) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.oo-auth-box--hero label {
    color: var(--light);
}

.oo-auth-box--hero .oo-auth-switch {
    color: var(--light-70);
}

.oo-auth-box--hero .oo-auth-switch a {
    color: var(--light);
}

.oo-auth-box--hero label {
    color: var(--text-body);
}

.oo-auth-box--hero .oo-form-message--error {
    margin-bottom: var(--space-xs);
}


/* ---- Auth box (login/register) ---- */
.oo-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xs);
}

@media (max-width: 478px) {
    .oo-form-row {
        grid-template-columns: 1fr;
    }
}

.oo-auth-box {
    max-width: none;
    width: 100%;
    margin: 0 auto;
    background: linear-gradient(145deg, rgba(13, 110, 138, 0.6) 0%, rgba(5, 51, 62, 0.7) 50%, rgba(201, 149, 44, 0.3) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-l);
    padding: var(--space-xl) var(--space-l);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.oo-auth-box label {
    color: var(--light);
}

.oo-auth-box .oo-auth-switch {
    color: var(--light-70);
}

.oo-auth-box .oo-auth-switch a {
    color: var(--light);
}

.oo-auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-s);
}

.oo-auth-form .oo-form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-3xs);
}

.oo-hero--auth .oo-btn,
.oo-hero--auth .oo-hero-title,
.oo-hero--auth .oo-hero-description {
    animation: none !important;
}

.oo-auth-form label {
    font-size: var(--text-s);
    font-weight: 600;
    color: var(--light);
}

.oo-auth-form input {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--text-m);
    padding: var(--space-xs) var(--space-s);
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-s);
    outline: none;
    transition: border-color ease 0.3s;
    background: var(--bg-body);
}

.oo-auth-form input:focus {
    border-color: var(--primary);
    background: var(--bg-surface);
}

.oo-auth-form input::placeholder {
    color: var(--dark-30);
}

.oo-auth-form .oo-form-captcha {
    display: flex;
    align-items: center;
    gap: var(--space-2xs);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-body);
}

.oo-auth-form .oo-form-captcha input {
    width: 80px;
    text-align: center;
}

.oo-auth-switch {
    text-align: center;
    margin-top: var(--space-s);
    font-size: var(--text-xs);
    color: var(--dark-50);
}

.oo-auth-switch a {
    color: var(--primary);
    font-weight: 600;
}

/* ---- Dashboard ---- */
.oo-dashboard {
    max-width: 900px;
    margin: 0 auto;
}

.oo-dash-actions {
    display: flex;
    gap: var(--space-s);
    margin-bottom: var(--space-l);
    flex-wrap: wrap;
}

.oo-dash-section {
    margin-bottom: var(--space-xl);
}

.oo-dash-heading {
    font-size: var(--text-xl);
    color: var(--primary);
    margin-bottom: var(--space-s);
    padding-bottom: var(--space-3xs);
    border-bottom: 2px solid var(--primary-l-4);
}

.oo-dash-empty {
    font-size: var(--text-s);
    color: var(--dark-50);
    padding: var(--space-m);
    background: var(--dark-5);
    border-radius: var(--radius-m);
    text-align: center;
}

.oo-dash-empty a {
    color: var(--primary);
    font-weight: 600;
}

/* ---- Appointments table ---- */
.oo-dash-table-wrap {
    overflow-x: auto;
}

.oo-dash-table {
    width: 100%;
    border-collapse: collapse;
}

.oo-dash-table th {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    text-align: left;
    padding: var(--space-2xs) var(--space-xs);
    border-bottom: 2px solid var(--border-primary);
}

.oo-dash-table td {
    font-size: var(--text-s);
    padding: var(--space-2xs) var(--space-xs);
    border-bottom: 1px solid var(--border-primary);
}

.oo-dash-code {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

.oo-dash-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.oo-dash-badge--pending {
    background: #fff3cd;
    color: #856404;
}

.oo-dash-badge--confirmed {
    background: #d4edda;
    color: #155724;
}

.oo-dash-badge--cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* ---- Timeline ---- */
.oo-timeline {
    position: relative;
    padding-left: var(--space-l);
}

.oo-timeline::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-l-4);
}

.oo-timeline-item {
    position: relative;
    display: flex;
    gap: var(--space-xs);
    padding-bottom: var(--space-m);
}

.oo-timeline-icon {
    position: absolute;
    left: calc(var(--space-l) * -1 + 6px);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    border: 2px solid var(--primary-l-4);
    border-radius: 50%;
    font-size: 14px;
    z-index: 1;
}

.oo-timeline-content {
    flex: 1;
    background: var(--dark-5);
    border-radius: var(--radius-s);
    padding: var(--space-2xs) var(--space-xs);
}

.oo-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4xs);
}

.oo-timeline-header strong {
    font-size: var(--text-s);
    color: var(--text-title);
}

.oo-timeline-date {
    font-size: 0.75rem;
    color: var(--dark-50);
}

.oo-timeline-desc {
    font-size: var(--text-xs);
    color: var(--text-body);
    line-height: 1.6;
}

.oo-timeline-amount {
    font-size: var(--text-s);
    font-weight: 700;
    color: var(--primary);
    margin-top: var(--space-4xs);
}

/* ---- Responsive ---- */
@media (max-width: 478px) {
    .oo-auth-box {
        padding: var(--space-s);
    }

    .oo-dash-actions {
        flex-direction: column;
    }

    .oo-timeline {
        padding-left: var(--space-m);
    }
}
