/* Login, create-account and account pages. Loaded after styles.css. */

.auth-page {
    min-height: 100vh;
    padding: 120px 20px 60px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: linear-gradient(160deg, #f8fafc 0%, #e3fafa 100%);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 16px;
    padding: 2.25rem;
    box-shadow: 0 10px 40px rgba(0, 80, 80, 0.12);
}

.auth-card.wide {
    max-width: 640px;
}

.auth-card h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.35rem;
}

.auth-subtitle {
    color: #4a5568;
    margin-bottom: 1.75rem;
}

.auth-field {
    margin-bottom: 1.15rem;
}

.auth-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.4rem;
}

.auth-field input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: #1a202c;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-field input:focus {
    outline: none;
    border-color: #00B8B8;
    box-shadow: 0 0 0 3px rgba(0, 224, 224, 0.2);
}

.auth-hint {
    font-size: 0.82rem;
    color: #718096;
    margin-top: 0.35rem;
}

.auth-submit {
    width: 100%;
    margin-top: 0.5rem;
}

.auth-submit:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

.auth-message {
    display: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.92rem;
    margin-bottom: 1.15rem;
}

.auth-message.error {
    display: block;
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.auth-message.success {
    display: block;
    background: #f0fff4;
    color: #276749;
    border: 1px solid #9ae6b4;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: #4a5568;
    font-size: 0.95rem;
}

.auth-switch a,
.link-button {
    color: #008f8f;
    font-weight: 600;
    text-decoration: none;
}

.auth-switch a:hover,
.link-button:hover {
    text-decoration: underline;
}

.link-button {
    background: none;
    border: none;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

/* Account page */
.account-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.account-email {
    color: #718096;
    font-size: 0.95rem;
    overflow-wrap: anywhere;
}

.account-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #718096;
    margin: 1.75rem 0 0.6rem;
}

.account-list {
    list-style: none;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.account-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 12px 16px;
}

.account-list li + li {
    border-top: 1px solid #e2e8f0;
}

.account-number {
    font-weight: 600;
    color: #1a202c;
    font-variant-numeric: tabular-nums;
}

.status-badge {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.status-badge.approved {
    background: #e6fffa;
    color: #1d6f6f;
}

.status-badge.pending {
    background: #fffaf0;
    color: #9c5a1a;
}

.dashboard-cta {
    margin-top: 1.5rem;
}

.dashboard-cta .btn {
    width: 100%;
}

.dashboard-cta .btn[aria-disabled="true"] {
    opacity: 0.5;
    pointer-events: none;
    box-shadow: none;
}

.add-account-row {
    display: flex;
    gap: 0.75rem;
}

.add-account-row input {
    flex: 1;
    min-width: 0;
}

.add-account-row .btn {
    padding: 10px 22px;
    white-space: nowrap;
}

/* Admin upload page */
.auth-field input[type="file"] {
    padding: 9px 10px;
    background: #f8fafc;
}

.upload-errors,
.upload-rules {
    margin: 0 0 1.15rem 1.2rem;
    font-size: 0.9rem;
    color: #4a5568;
}

.upload-errors {
    color: #c53030;
    max-height: 260px;
    overflow-y: auto;
    overflow-wrap: anywhere;
}

.upload-rules li,
.upload-errors li {
    margin-bottom: 0.35rem;
    overflow-wrap: anywhere;
}

@media (max-width: 480px) {
    .auth-page {
        padding: 100px 16px 40px;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .account-header,
    .add-account-row {
        flex-direction: column;
    }
}
