/* ====================================
   Client Portal - Page Styles
   ==================================== */

/* ====================================
   Portal Hero Section
   ==================================== */
.portal-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--soft-peach) 0%, var(--cream) 50%, var(--light-gold) 100%);
    overflow: hidden;
}

.portal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23E8A0BF" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,154.7C384,149,480,107,576,90.7C672,75,768,85,864,106.7C960,128,1056,160,1152,165.3C1248,171,1344,149,1392,138.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.portal-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(232, 160, 191, 0.15), transparent 50%);
}

.portal-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 20px;
}

.portal-icon-circle {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-rose));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.portal-icon-circle i {
    font-size: 2.8rem;
    color: white;
}

.portal-hero-title {
    font-size: 3rem;
    color: var(--primary-rose);
    margin-bottom: 15px;
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.portal-hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin: 0;
}

/* ====================================
   Portal Dashboard Section
   ==================================== */
.portal-dashboard {
    background: var(--warm-white);
    padding: var(--section-padding);
}

.portal-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.portal-dash-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.portal-dash-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px var(--shadow-color);
}

.portal-dash-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px 25px 0;
}

.portal-dash-card-header h3 {
    font-size: 1.25rem;
    color: var(--primary-rose);
    font-family: var(--font-heading);
    font-weight: 600;
    margin: 0;
}

.portal-dash-icon {
    width: 55px;
    height: 55px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.portal-dash-icon i {
    font-size: 1.5rem;
    color: white;
}

.appointments-icon {
    background: linear-gradient(135deg, #E8A0BF, #D4829C);
}

.payment-icon {
    background: linear-gradient(135deg, #D4AF37, #C49B2C);
}

.affirmations-icon {
    background: linear-gradient(135deg, #F4C97D, #E8B654);
}

.recordings-icon {
    background: linear-gradient(135deg, #C4A5D8, #A882C4);
}

.messaging-icon {
    background: linear-gradient(135deg, #A8D8C4, #82C4A8);
}

.progress-icon {
    background: linear-gradient(135deg, #E8A0BF, #C4A5D8);
}

.documents-icon {
    background: linear-gradient(135deg, #D4AF37, #E8C44A);
}

.portal-dash-card-body {
    padding: 20px 25px;
    flex: 1;
}

.portal-dash-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.portal-dash-label {
    font-size: 0.9rem;
    color: var(--text-medium);
    font-weight: 500;
}

.portal-dash-badge {
    font-size: 0.75rem;
    background: var(--light-gold);
    color: var(--primary-rose);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.portal-dash-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.portal-dash-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-medium);
    border-bottom: 1px solid var(--border-light, #f0ebe6);
}

.portal-dash-list li:last-child {
    border-bottom: none;
}

.portal-dash-list li i {
    font-size: 0.85rem;
    color: var(--primary-pink);
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.portal-dash-card-footer {
    padding: 15px 25px 25px;
}

.portal-dash-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-rose));
    color: white;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    width: 100%;
    justify-content: center;
}

.portal-dash-btn:hover {
    background: linear-gradient(135deg, var(--primary-rose), var(--primary-pink));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-color);
    color: white;
}

/* Affirmation Quote */
.portal-affirmation-quote {
    background: linear-gradient(135deg, var(--cream), var(--light-gold));
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    text-align: center;
    border-left: 4px solid var(--primary-gold);
}

.portal-affirmation-quote i {
    color: var(--primary-gold);
    font-size: 1.2rem;
    margin-bottom: 8px;
    display: block;
}

.portal-affirmation-quote p {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0 0 8px;
}

.portal-affirmation-quote cite {
    font-size: 0.85rem;
    color: var(--primary-rose);
    font-style: normal;
    font-weight: 500;
}

/* ====================================
   Client Materials Section
   ==================================== */
.portal-materials {
    background: linear-gradient(135deg, var(--cream) 0%, var(--warm-white) 50%, var(--soft-peach) 100%);
    padding: var(--section-padding);
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 15px auto 0;
    line-height: 1.7;
}

.portal-materials-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    background: white;
    padding: 30px 40px;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    border: 2px solid var(--light-gold);
}

.portal-materials-logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.portal-materials-banner-text h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--primary-rose);
    margin: 0 0 5px;
    font-weight: 600;
}

.portal-materials-banner-text p {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin: 0;
    font-style: italic;
}

.portal-materials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.portal-material-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-top: 4px solid var(--primary-pink);
}

.portal-material-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px var(--shadow-color);
    border-top-color: var(--primary-gold);
}

.portal-material-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--primary-pink), var(--soft-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto 0;
}

.portal-material-icon i {
    font-size: 1.6rem;
    color: white;
}

.portal-material-content {
    padding: 20px 30px;
    flex: 1;
    text-align: center;
}

.portal-material-content h4 {
    font-size: 1.3rem;
    color: var(--primary-rose);
    margin-bottom: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
}

.portal-material-content p {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 15px;
}

.portal-material-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.portal-material-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.portal-material-list li i {
    color: var(--primary-gold);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.portal-material-footer {
    padding: 0 30px 25px;
    text-align: center;
}

.portal-material-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-rose));
    color: white;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.portal-material-btn:hover {
    background: linear-gradient(135deg, var(--primary-rose), var(--primary-pink));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-color);
    color: white;
}

/* Materials Branding Footer */
.portal-materials-branding {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 25px 35px;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    margin-top: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--light-gold);
}

.portal-branding-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.portal-materials-branding p {
    font-size: 0.85rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin: 0;
}

/* ====================================
   Portal Features Section (legacy - kept for compatibility)
   ==================================== */
.portal-features {
    background: var(--warm-white);
    padding: var(--section-padding);
}

.portal-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.portal-feature-card {
    background: white;
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
    border-top: 4px solid var(--primary-pink);
}

.portal-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px var(--shadow-color);
    border-top-color: var(--primary-gold);
}

.portal-feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-pink), var(--soft-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.portal-feature-icon i {
    font-size: 1.8rem;
    color: white;
}

.portal-feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-rose);
}

.portal-feature-card p {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin: 0;
}

/* ====================================
   Sign In Section
   ==================================== */
.portal-signin {
    background: linear-gradient(135deg, var(--cream) 0%, var(--warm-white) 100%);
    padding: var(--section-padding);
}

.portal-signin-card {
    background: white;
    max-width: 550px;
    margin: 0 auto;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.portal-signin-header {
    margin-bottom: 35px;
}

.portal-signin-header i {
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
}

.portal-signin-header h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-rose);
}

.portal-signin-header p {
    font-size: 1.05rem;
    color: var(--text-medium);
    margin: 0;
}

.portal-signin-actions {
    margin-bottom: 35px;
}

.portal-signin-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 50px;
    font-size: 1.15rem;
    font-weight: 600;
}

.portal-signin-btn i {
    font-size: 1.1rem;
}

.portal-signin-help {
    border-top: 2px solid var(--border-light);
    padding-top: 25px;
}

.portal-signin-help p {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-bottom: 10px;
    line-height: 1.7;
}

.portal-signin-help p:last-child {
    margin-bottom: 0;
}

.portal-signin-help a {
    color: var(--primary-rose);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: var(--primary-pink);
    text-underline-offset: 2px;
}

.portal-signin-help a:hover {
    color: var(--primary-gold);
    text-decoration-color: var(--primary-gold);
}

/* ====================================
   Portal Contact Bar
   ==================================== */
.portal-contact-bar {
    background: var(--warm-white);
    padding: 30px 0;
}

.portal-contact-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.portal-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.portal-contact-item i {
    font-size: 1.2rem;
    color: var(--primary-pink);
}

.portal-contact-item a {
    font-size: 1.05rem;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition-smooth);
}

.portal-contact-item a:hover {
    color: var(--primary-rose);
}

.portal-contact-divider {
    width: 2px;
    height: 24px;
    background: var(--border-light);
}

/* ====================================
   Security Badges Section
   ==================================== */
.portal-security {
    background: linear-gradient(135deg, var(--cream) 0%, var(--light-gold) 100%);
    padding: 50px 0;
}

.portal-security-badges {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.portal-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 18px 30px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.portal-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.portal-badge i {
    font-size: 1.4rem;
    color: var(--primary-gold);
}

.portal-badge span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* ====================================
   Portal Responsive Styles
   ==================================== */
@media (max-width: 1024px) {
    .portal-dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portal-hero-title {
        font-size: 2.2rem;
    }

    .portal-hero-subtitle {
        font-size: 1.05rem;
    }

    .portal-icon-circle {
        width: 80px;
        height: 80px;
    }

    .portal-icon-circle i {
        font-size: 2.2rem;
    }

    .portal-features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .portal-dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .portal-materials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .portal-materials-banner {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }

    .portal-materials-branding {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .portal-signin-card {
        padding: 35px 25px;
    }

    .portal-signin-btn {
        padding: 16px 35px;
        font-size: 1.05rem;
        width: 100%;
        justify-content: center;
    }

    .portal-security-badges {
        gap: 15px;
    }

    .portal-badge {
        padding: 14px 22px;
    }

    .portal-contact-divider {
        display: none;
    }

    .portal-contact-content {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .portal-hero-content {
        padding: 40px 15px;
    }

    .portal-hero-title {
        font-size: 1.8rem;
    }

    .portal-hero-subtitle {
        font-size: 1rem;
    }

    .portal-icon-circle {
        width: 70px;
        height: 70px;
    }

    .portal-icon-circle i {
        font-size: 1.8rem;
    }

    .portal-feature-card {
        padding: 25px 20px;
    }

    .portal-dash-card-header {
        padding: 20px 20px 0;
    }

    .portal-dash-card-body {
        padding: 15px 20px;
    }

    .portal-dash-card-footer {
        padding: 10px 20px 20px;
    }

    .portal-material-content {
        padding: 15px 20px;
    }

    .portal-material-footer {
        padding: 0 20px 20px;
    }

    .portal-signin-card {
        padding: 30px 20px;
    }

    .portal-signin-header h3 {
        font-size: 1.6rem;
    }

    .portal-security-badges {
        flex-direction: column;
        align-items: center;
    }

    .portal-badge {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (min-width: 1400px) {
    .portal-hero-title {
        font-size: 3.5rem;
    }
}
