/* ============================================================
   CLINIC PUBLIC PAGES — Registration & slug-specific styles
   Feature CSS: /css/feature/clinic-public.css
   ============================================================ */

/* ── REGISTRATION CTA (on homepage) ── */
.clinic-register-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--clinic-primary), color-mix(in srgb, var(--clinic-primary), #000 20%));
    position: relative;
    overflow: hidden;
}
.clinic-register-cta::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    top: -80px;
    right: -80px;
}
.clinic-register-cta::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    bottom: -60px;
    left: -60px;
}
.clinic-register-cta .section-badge {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.clinic-register-cta .section-title {
    color: #fff;
}
.register-cta-text {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}
.btn-register-cta {
    display: inline-flex;
    align-items: center;
    background: #fff;
    color: var(--clinic-primary);
    padding: 0.85rem 2.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.btn-register-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.2);
    color: var(--clinic-primary);
}

/* ── REGISTRATION PAGE ── */
.register-section {
    padding: 7rem 0 3rem;
    min-height: 100vh;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f5e9 100%);
}
.register-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 2.5rem;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.04);
}
.register-header {
    text-align: center;
    margin-bottom: 2rem;
}
.register-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--clinic-primary), color-mix(in srgb, var(--clinic-primary), #818cf8 50%));
    color: #fff;
    border-radius: 1rem;
    font-size: 1.5rem;
}
.register-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}
.register-subtitle {
    color: #64748b;
    font-size: 0.95rem;
}

/* ── Form Controls ── */
.register-form .form-floating > .form-control {
    border-radius: 0.75rem;
    border: 2px solid #e2e8f0;
    transition: all 0.2s;
}
.register-form .form-floating > .form-control:focus {
    border-color: var(--clinic-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--clinic-primary), transparent 85%);
}
.register-form .form-floating > .form-control.is-invalid {
    border-color: #dc3545;
}
.register-form .form-floating > label {
    color: #94a3b8;
}

/* ── Password Strength ── */
.password-strength {
    padding: 0 0.25rem;
}
.strength-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}
.strength-fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.strength-fill.weak { width: 25%; background: #ef4444; }
.strength-fill.fair { width: 50%; background: #f59e0b; }
.strength-fill.good { width: 75%; background: #22c55e; }
.strength-fill.strong { width: 100%; background: #10b981; }
.strength-text {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* ── Submit Button ── */
.btn-register-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--clinic-primary);
    color: #fff;
    padding: 0.85rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 16px color-mix(in srgb, var(--clinic-primary), transparent 65%);
}
.btn-register-submit:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--clinic-primary), transparent 50%);
}
.btn-register-submit:active {
    transform: translateY(0);
}
.btn-register-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ── Footer text ── */
.register-footer-text {
    text-align: center;
    margin-top: 1.5rem;
    color: #64748b;
    font-size: 0.9rem;
}
.register-footer-text a {
    color: var(--clinic-primary);
    font-weight: 600;
    text-decoration: none;
    margin-left: 0.25rem;
}
.register-footer-text a:hover {
    text-decoration: underline;
}

/* ── Success alert ── */
.register-card .alert-success {
    border-radius: 0.75rem;
    border: none;
    background: #ecfdf5;
    color: #065f46;
    margin-bottom: 1.5rem;
}
.register-card .alert-success .alert-link {
    color: var(--clinic-primary);
    font-weight: 700;
}
.register-card .alert-danger {
    border-radius: 0.75rem;
    border: none;
    background: #fef2f2;
    color: #991b1b;
    margin-bottom: 1.5rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .register-section {
        padding: 5rem 0 2rem;
    }
    .register-card {
        padding: 1.5rem;
        border-radius: 1rem;
        margin: 0 0.5rem;
    }
    .register-title {
        font-size: 1.4rem;
    }
    .register-icon {
        width: 52px;
        height: 52px;
        font-size: 1.25rem;
    }
    .clinic-register-cta {
        padding: 3rem 0;
    }
    .register-cta-text {
        font-size: 1rem;
    }
    .btn-register-cta {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    .register-card {
        padding: 1.25rem 1rem;
    }
    .register-form .row .col-md-6 {
        margin-bottom: 0;
    }
}
