/* ================================================================
   account.css — Shared styles for all Account & Manage pages
   ================================================================ */

/* ---- Auth Wrapper (all pages) ---- */
.auth-wrapper {
    min-height: 100vh;
    background-color: #f4f7f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Montserrat', sans-serif;
}

/* ---- Template A: Two-Column Auth Card ---- */
.auth-card {
    width: 100%;
    max-width: 950px;
    min-height: 600px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    overflow: hidden;
    position: relative;
    background: #fff;
}

.brand-section {
    flex: 1;
    background: linear-gradient(90deg, #b6e13b 0%, #4fc176 60%, #36b26b 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: #fff;
}

.form-section h2 {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.form-section .form-subtitle {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.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: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #fff;
    overflow: hidden;
    position: relative;
}

.manage-header {
    padding: 2.5rem 2.5rem 0;
}

.manage-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #64748b;
    text-decoration: none;
    margin-bottom: 1rem;
    transition: color 0.2s, gap 0.2s;
}

.manage-back:hover {
    color: #e91e63;
    gap: 0.65rem;
}

.manage-header h3 {
    font-weight: 700;
    font-size: 1.25rem;
    color: #1e293b;
    margin: 0;
}

.manage-header p {
    color: #64748b;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.manage-nav {
    display: flex;
    gap: 0.5rem;
    padding: 1.25rem 2.5rem;
    border-bottom: 1px solid #e9ecef;
    flex-wrap: wrap;
}

.manage-nav a {
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    white-space: nowrap;
}

.manage-nav a:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.manage-nav a.active {
    background: #e91e63;
    color: #fff;
}

.manage-body {
    padding: 2.5rem;
}

/* ---- Template C: Status Card ---- */
.status-card {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #fff;
    padding: 3rem;
    text-align: center;
}

.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: #10b981;
}

.status-icon.warning {
    color: #f59e0b;
}

.status-icon.danger {
    color: #dc3545;
}

.status-icon.info {
    color: #e91e63;
}

.status-card h2 {
    font-weight: 700;
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.status-card p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* ---- Shared Form Elements ---- */
.pill-input {
    background-color: #f8f9fa;
    border-radius: 50px !important;
    border: 1px solid #e9ecef;
    padding: 12px 25px;
    font-size: 0.9rem;
    width: 100%;
    transition: all 0.2s;
}

.pill-input:focus {
    background-color: #fff;
    border-color: #e91e63;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
    outline: none;
}

.pill-input:disabled {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

/* ---- Buttons ---- */
.btn-payce-pink {
    background-color: #e91e63;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    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: #d81b60;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.4);
    color: #fff;
    text-decoration: none;
}

.btn-payce-outline {
    background: transparent;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    padding: 12px;
    font-weight: 700;
    color: #64748b;
    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: #e91e63;
    color: #e91e63;
    text-decoration: none;
}

.btn-payce-danger {
    background-color: #dc3545;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.875rem;
}

.btn-payce-danger:hover {
    background-color: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
    color: #fff;
}

.btn-payce-secondary {
    background-color: transparent;
    color: #64748b;
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 0.8125rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-payce-secondary:hover {
    color: #e91e63;
    text-decoration: none;
}

/* ---- Styled Alerts ---- */
.styled-alert {
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    font-size: 0.875rem;
    line-height: 1.6;
    border: none;
}

.styled-alert.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.styled-alert.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
}

.styled-alert.alert-success {
    background-color: #ecfdf5;
    color: #065f46;
}

/* ---- Form Labels ---- */
.form-label-styled {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.5rem;
    display: block;
}

/* ---- Auth Links ---- */
.auth-link {
    color: #e91e63;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.875rem;
}

.auth-link:hover {
    color: #d81b60;
    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: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    font-weight: 700;
    color: #1e293b;
    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 #f1f5f9;
    vertical-align: middle;
}

.passkeys-table tr:last-child td {
    border-bottom: none;
}

.passkey-name {
    font-weight: 700;
    color: #1e293b;
    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: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

/* ---- QR Code Container ---- */
.qr-container {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.qr-container img {
    max-width: 200px;
    border-radius: 8px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .auth-card {
        flex-direction: column;
        min-height: auto;
        border-radius: 15px;
    }

    .brand-section {
        display: none !important;
    }

    .form-section {
        padding: 2rem;
    }

    .manage-card {
        border-radius: 15px;
    }

    .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: 15px;
    }

    .recovery-codes-grid {
        grid-template-columns: 1fr;
    }
}

/* While a login form is being submitted, visibly disable its buttons (the full-screen
   "Signing You In" overlay also covers them). Reset automatically on the next render. */
.login-card.is-submitting button {
    opacity: 0.55;
    pointer-events: none;
    cursor: progress;
}
