/* ================================================================
   account.css — Shared styles for all Account & Manage pages
   ServicePoint Dark Slate Theme
   ================================================================ */

/* ---- Auth Wrapper (all pages) ---- */
.auth-wrapper {
    min-height: 100vh;
    background-color: #0F172A;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Inter', sans-serif;
}

/* ---- Template A: Two-Column Auth Card ---- */
.auth-card {
    width: 100%;
    max-width: 950px;
    min-height: 600px;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    display: flex;
    overflow: hidden;
    position: relative;
    background: #1E293B;
    border: 1px solid #334155;
}

.brand-section {
    flex: 1;
    background: linear-gradient(180deg, #0088CC 0%, #001A72 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    color: #fff;
    text-align: center;
}

.brand-section .brand-logo {
    max-height: 80px;
    width: auto;
    display: block;
    margin: 0 auto 2.5rem;
}

.brand-section h1 {
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.brand-section p {
    opacity: 0.75;
    font-size: 0.9rem;
    line-height: 1.6;
}

.brand-section .footer-small {
    opacity: 0.5;
    font-size: 0.75rem;
    margin-top: 2rem;
}

.form-section {
    flex: 1.2;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #1E293B;
    color: #e2e8f0;
}

.form-section h2 {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #f1f5f9;
}

.form-section .form-subtitle {
    color: #94a3b8;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* ---- Template A-alt: Centered Single-Column Auth Card ---- */
.auth-card-centered {
    width: 100%;
    max-width: 480px;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2.5rem;
    color: #e2e8f0;
}

.auth-card-centered h2 {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #f1f5f9;
}

.auth-card-centered .form-subtitle {
    color: #94a3b8;
    font-size: 0.875rem;
    margin-bottom: 0;
}

.payce-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 40px;
    object-fit: cover;
    z-index: 5;
}

/* ---- Template B: Manage Card ---- */
.manage-card {
    width: 100%;
    max-width: 720px;
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    background: #1E293B;
    border: 1px solid #334155;
    overflow: hidden;
    position: relative;
}

.manage-header {
    padding: 2.5rem 2.5rem 0;
}

.manage-back {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.manage-back:hover {
    color: #e2e8f0;
}

.manage-header h3 {
    font-weight: 700;
    font-size: 1.25rem;
    color: #f1f5f9;
    margin: 0;
}

.manage-header p {
    color: #94a3b8;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.manage-nav {
    display: flex;
    gap: 0.5rem;
    padding: 1.25rem 2.5rem;
    border-bottom: 1px solid #334155;
    flex-wrap: wrap;
}

.manage-nav a {
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    white-space: nowrap;
}

.manage-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
}

.manage-nav a.active {
    background: #0088CC;
    color: #fff;
}

.manage-body {
    padding: 2.5rem;
}

/* ---- Template C: Status Card ---- */
.status-card {
    width: 100%;
    max-width: 500px;
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    background: #1E293B;
    border: 1px solid #334155;
    padding: 3rem;
    text-align: center;
    color: #e2e8f0;
}

.status-card .status-logo {
    max-height: 40px;
    width: auto;
    margin-bottom: 2rem;
}

.status-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.status-icon.success {
    color: #009639;
}

.status-icon.warning {
    color: #F4821F;
}

.status-icon.danger {
    color: #dc3545;
}

.status-icon.info {
    color: #0088CC;
}

.status-card h2 {
    font-weight: 700;
    font-size: 1.5rem;
    color: #f1f5f9;
    margin-bottom: 0.75rem;
}

.status-card p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* ---- Shared Form Elements ---- */
.pill-input {
    background-color: rgba(2, 6, 23, 0.5);
    border-radius: 0.5rem !important;
    border: 1px solid #334155;
    padding: 12px 20px;
    font-size: 0.9rem;
    width: 100%;
    transition: all 0.2s;
    color: #e2e8f0;
}

.pill-input::placeholder {
    color: #64748b;
}

.pill-input:focus {
    background-color: rgba(2, 6, 23, 0.7);
    border-color: #0088CC;
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.15);
    outline: none;
    color: #e2e8f0;
}

.pill-input:disabled {
    background-color: #1E293B;
    color: #64748b;
    cursor: not-allowed;
}

/* ---- Buttons ---- */
.btn-payce-pink {
    background-color: #0088CC;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    padding: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.3s ease;
    width: 100%;
    display: block;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.875rem;
}

.btn-payce-pink:hover {
    background-color: #0077b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 136, 204, 0.3);
    color: #fff;
    text-decoration: none;
}

.btn-payce-outline {
    background: transparent;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    padding: 12px;
    font-weight: 600;
    color: #94a3b8;
    transition: all 0.2s;
    width: 100%;
    display: block;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.875rem;
}

.btn-payce-outline:hover {
    border-color: #0088CC;
    color: #0088CC;
    text-decoration: none;
}

.btn-payce-danger {
    background-color: #dc3545;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    padding: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.875rem;
}

.btn-payce-danger:hover {
    background-color: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(220, 53, 69, 0.3);
    color: #fff;
}

.btn-payce-secondary {
    background-color: transparent;
    color: #94a3b8;
    border: none;
    border-radius: 0.5rem;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.8125rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-payce-secondary:hover {
    color: #0088CC;
    text-decoration: none;
}

/* ---- Styled Alerts ---- */
.styled-alert {
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    font-size: 0.875rem;
    line-height: 1.6;
    border: none;
}

.styled-alert.alert-warning {
    background-color: rgba(244, 130, 31, 0.1);
    color: #F4821F;
    border: 1px solid rgba(244, 130, 31, 0.2);
}

.styled-alert.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #ef4444;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.styled-alert.alert-success {
    background-color: rgba(0, 150, 57, 0.1);
    color: #009639;
    border: 1px solid rgba(0, 150, 57, 0.2);
}

/* ---- Form Labels ---- */
.form-label-styled {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 0.5rem;
    display: block;
}

/* ---- Auth Links ---- */
.auth-link {
    color: #0088CC;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.875rem;
}

.auth-link:hover {
    color: #0077b3;
    text-decoration: underline;
}

/* ---- Recovery Codes ---- */
.recovery-codes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin: 1rem 0;
}

.recovery-code-item {
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid #334155;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    font-weight: 700;
    color: #e2e8f0;
    text-align: center;
}

/* ---- Passkeys Table ---- */
.passkeys-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.passkeys-table td {
    padding: 1rem 0;
    border-bottom: 1px solid #334155;
    vertical-align: middle;
    color: #e2e8f0;
}

.passkeys-table tr:last-child td {
    border-bottom: none;
}

.passkey-name {
    font-weight: 700;
    color: #f1f5f9;
    font-size: 0.9rem;
}

.passkey-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.passkey-actions button,
.passkey-actions a {
    padding: 0.375rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

/* ---- QR Code Container ---- */
.qr-container {
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid #334155;
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.qr-container img {
    max-width: 200px;
    border-radius: 0.5rem;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .auth-card {
        flex-direction: column;
        min-height: auto;
        border-radius: 0.75rem;
    }

    .brand-section {
        display: none !important;
    }

    .form-section {
        padding: 2rem;
    }

    .manage-card {
        border-radius: 0.75rem;
    }

    .manage-header,
    .manage-body {
        padding: 1.5rem;
    }

    .manage-nav {
        padding: 0.75rem 1.5rem;
        gap: 0.375rem;
    }

    .manage-nav a {
        padding: 0.375rem 1rem;
        font-size: 0.75rem;
    }

    .status-card {
        padding: 2rem;
        border-radius: 0.75rem;
    }

    .recovery-codes-grid {
        grid-template-columns: 1fr;
    }
}
