/* ----------------------------------------------------------------------------
 * Easy!Appointments - Online Appointment Scheduler
 *
 * @package     EasyAppointments
 * @author      A.Tselegidis <alextselegidis@gmail.com>
 * @copyright   Copyright (c) Alex Tselegidis
 * @license     https://opensource.org/licenses/GPL-3.0 - GPLv3
 * @link        https://easyappointments.org
 * @since       v1.5.0
 * ---------------------------------------------------------------------------- */

:root {
    --cp-bg: #f3f6fb;
    --cp-surface: #ffffff;
    --cp-surface-soft: #f7faff;
    --cp-text: #0f1f38;
    --cp-text-soft: #5f6f86;
    --cp-border: #dfe7f2;
    --cp-primary: #0f5ad0;
    --cp-primary-dark: #0b4aab;
    --cp-success: #11835b;
    --cp-warning: #a66d00;
    --cp-danger: #c73f52;
    --cp-info: #0b66c2;
    --cp-neutral: #6a7688;
    --cp-shadow: 0 18px 50px rgba(15, 42, 88, 0.08);
    --cp-radius-lg: 28px;
    --cp-radius-md: 20px;
    --cp-radius-sm: 14px;
}

html,
body {
    min-height: 100%;
    background:
        radial-gradient(circle at top left, rgba(15, 90, 208, 0.08), transparent 28%),
        radial-gradient(circle at top right, rgba(17, 131, 91, 0.08), transparent 24%),
        var(--cp-bg);
    color: var(--cp-text);
    font-family: 'Roboto', sans-serif;
}

body.customer-portal-shell {
    margin: 0;
}

.customer-portal-page {
    min-height: 100vh;
}

.customer-portal-topbar {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.customer-portal-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: inherit;
    text-decoration: none;
    min-width: 0;
}

.customer-portal-brand-media {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(15, 90, 208, 0.1);
    box-shadow: 0 10px 30px rgba(15, 42, 88, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.customer-portal-brand-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.customer-portal-brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.customer-portal-brand-label {
    color: var(--cp-primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.customer-portal-brand-copy strong {
    font-size: 20px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.customer-portal-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.customer-portal-user-chip,
.customer-portal-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s ease;
}

.customer-portal-user-chip {
    background: rgba(15, 90, 208, 0.1);
    color: var(--cp-primary);
}

.customer-portal-link-primary {
    background: var(--cp-primary);
    color: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 90, 208, 0.22);
}

.customer-portal-link-primary:hover {
    background: var(--cp-primary-dark);
    color: #ffffff;
}

.customer-portal-link-secondary {
    background: rgba(255, 255, 255, 0.78);
    color: var(--cp-text);
    border: 1px solid rgba(15, 90, 208, 0.12);
}

.customer-portal-link-secondary:hover {
    color: var(--cp-primary);
    border-color: rgba(15, 90, 208, 0.3);
}

.customer-portal-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 20px 48px;
}

.customer-portal-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cp-primary);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.customer-portal-auth {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    gap: 24px;
    align-items: stretch;
}

.customer-portal-auth-copy,
.customer-portal-auth-card,
.customer-portal-section,
.customer-portal-hero {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(223, 231, 242, 0.9);
    border-radius: var(--cp-radius-lg);
    box-shadow: var(--cp-shadow);
}

.customer-portal-auth-copy {
    padding: 40px;
}

.customer-portal-auth-copy h1,
.customer-portal-hero h1 {
    margin: 14px 0 14px;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.05;
    letter-spacing: -1.4px;
}

.customer-portal-auth-copy p,
.customer-portal-hero p,
.customer-portal-auth-card p {
    color: var(--cp-text-soft);
    font-size: 16px;
    line-height: 1.7;
}

.customer-portal-feature-list {
    margin-top: 28px;
    display: grid;
    gap: 14px;
}

.customer-portal-feature-item,
.customer-portal-highlight-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: flex-start;
    padding: 18px 20px;
    border-radius: var(--cp-radius-md);
    background: var(--cp-surface-soft);
    border: 1px solid rgba(15, 90, 208, 0.09);
}

.customer-portal-feature-item .material-symbols-outlined,
.customer-portal-highlight-card .material-symbols-outlined,
.customer-portal-summary-card .material-symbols-outlined,
.customer-portal-empty-state .material-symbols-outlined {
    font-size: 28px;
    color: var(--cp-primary);
}

.customer-portal-feature-item strong,
.customer-portal-highlight-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
}

.customer-portal-feature-item p,
.customer-portal-highlight-card p {
    margin: 0;
    font-size: 14px;
}

.customer-portal-auth-card {
    padding: 34px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.customer-portal-auth-card h2 {
    margin: 12px 0 10px;
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -0.8px;
}

.customer-portal-form {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.customer-portal-field {
    display: grid;
    gap: 8px;
}

.customer-portal-field label {
    color: var(--cp-text);
    font-size: 13px;
    font-weight: 700;
}

.customer-portal-field .form-control {
    min-height: 52px;
    border-radius: 16px;
    border: 1px solid rgba(15, 90, 208, 0.16);
    box-shadow: none;
    padding: 0 16px;
    font-size: 15px;
}

.customer-portal-field .form-control:focus {
    border-color: rgba(15, 90, 208, 0.45);
    box-shadow: 0 0 0 4px rgba(15, 90, 208, 0.12);
}

.customer-portal-submit {
    min-height: 52px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.customer-portal-inline-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.customer-portal-inline-actions a,
.customer-portal-action {
    color: var(--cp-primary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.customer-portal-inline-actions a:hover,
.customer-portal-action:hover {
    color: var(--cp-primary-dark);
}

.customer-portal-alert {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 500;
}

.customer-portal-alert.is-success {
    background: rgba(17, 131, 91, 0.12);
    border-color: rgba(17, 131, 91, 0.2);
    color: var(--cp-success);
}

.customer-portal-alert.is-danger {
    background: rgba(199, 63, 82, 0.11);
    border-color: rgba(199, 63, 82, 0.2);
    color: var(--cp-danger);
}

.customer-portal-alert.is-info {
    background: rgba(11, 102, 194, 0.1);
    border-color: rgba(11, 102, 194, 0.18);
    color: var(--cp-info);
}

.customer-portal-hero {
    padding: 30px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
    gap: 24px;
    align-items: center;
}

.customer-portal-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.customer-portal-summary-card {
    background: var(--cp-surface-soft);
    border: 1px solid rgba(15, 90, 208, 0.08);
    border-radius: 22px;
    padding: 20px;
    display: grid;
    gap: 10px;
}

.customer-portal-summary-card strong {
    font-size: 34px;
    line-height: 1;
    letter-spacing: -0.9px;
}

.customer-portal-summary-card span:last-child {
    color: var(--cp-text-soft);
    font-size: 14px;
}

.customer-portal-section {
    margin-top: 24px;
    padding: 28px;
}

.customer-portal-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.customer-portal-section-header h2 {
    margin: 10px 0 0;
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -0.8px;
}

.customer-portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.customer-portal-card {
    background: #ffffff;
    border: 1px solid rgba(223, 231, 242, 0.95);
    border-radius: 24px;
    padding: 22px;
    display: grid;
    gap: 18px;
    min-height: 100%;
}

.customer-portal-card.is-muted {
    background: rgba(255, 255, 255, 0.74);
}

.customer-portal-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.customer-portal-card-title {
    display: block;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.customer-portal-card-top p {
    margin: 6px 0 0;
    color: var(--cp-text-soft);
}

.customer-portal-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.customer-portal-status.is-success {
    background: rgba(17, 131, 91, 0.12);
    color: var(--cp-success);
}

.customer-portal-status.is-warning {
    background: rgba(166, 109, 0, 0.12);
    color: var(--cp-warning);
}

.customer-portal-status.is-danger {
    background: rgba(199, 63, 82, 0.11);
    color: var(--cp-danger);
}

.customer-portal-status.is-info {
    background: rgba(11, 102, 194, 0.1);
    color: var(--cp-info);
}

.customer-portal-status.is-neutral {
    background: rgba(106, 118, 136, 0.12);
    color: var(--cp-neutral);
}

.customer-portal-details {
    margin: 0;
    display: grid;
    gap: 14px;
}

.customer-portal-details div {
    display: grid;
    gap: 4px;
}

.customer-portal-details dt {
    color: var(--cp-text-soft);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.customer-portal-details dd {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--cp-text);
}

.customer-portal-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.customer-portal-action-primary {
    color: var(--cp-primary-dark);
}

.customer-portal-inline-note {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(11, 102, 194, 0.08);
    color: var(--cp-info);
    font-size: 13px;
    line-height: 1.6;
}

.customer-portal-inline-note.is-danger {
    background: rgba(199, 63, 82, 0.1);
    color: var(--cp-danger);
}

.customer-portal-empty-state {
    padding: 32px 20px;
    border: 1px dashed rgba(15, 90, 208, 0.22);
    border-radius: 24px;
    background: rgba(247, 250, 255, 0.7);
    text-align: center;
    display: grid;
    gap: 10px;
    justify-items: center;
}

.customer-portal-empty-state strong {
    font-size: 20px;
}

.customer-portal-empty-state p {
    max-width: 520px;
    margin: 0;
    color: var(--cp-text-soft);
    line-height: 1.7;
}

@media (max-width: 980px) {
    .customer-portal-auth,
    .customer-portal-hero {
        grid-template-columns: 1fr;
    }

    .customer-portal-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .customer-portal-topbar,
    .customer-portal-main {
        padding-left: 14px;
        padding-right: 14px;
    }

    .customer-portal-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .customer-portal-topbar-actions,
    .customer-portal-section-header,
    .customer-portal-card-top {
        flex-direction: column;
        align-items: stretch;
    }

    .customer-portal-auth-copy,
    .customer-portal-auth-card,
    .customer-portal-section,
    .customer-portal-hero {
        padding: 24px 20px;
        border-radius: 22px;
    }

    .customer-portal-summary-grid {
        grid-template-columns: 1fr;
    }

    .customer-portal-auth-copy h1,
    .customer-portal-hero h1 {
        font-size: 34px;
    }

    .customer-portal-auth-card h2,
    .customer-portal-section-header h2 {
        font-size: 24px;
    }

    .customer-portal-inline-actions,
    .customer-portal-card-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}
