/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    color: #333333;
    overflow-x: hidden;
}

/* Screen Management */
.screen {
    display: none;
    min-height: 100vh;
    width: 100%;
}

.screen.active {
    display: flex;
}

/* Splash Screen - Modern Design */
.splash-screen {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    overflow: hidden;
}

.splash-container {
    position: relative;
    z-index: 2;
    text-align: center;
    background: none;
}

.splash-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
    background: none;
    pointer-events: none;
}

/* Gradient Orbs */
.gradient-orb {
    display: none;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #3b82f6, transparent);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #8b5cf6, transparent);
    bottom: -250px;
    right: -250px;
    animation-delay: 7s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.3), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
}

@keyframes floatOrb {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-50px, 50px) scale(0.9);
    }
}

/* Floating Particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 15s ease-in-out infinite;
}

.particle-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle-2 {
    top: 40%;
    left: 80%;
    animation-delay: 2s;
}

.particle-3 {
    top: 60%;
    left: 20%;
    animation-delay: 4s;
}

.particle-4 {
    top: 80%;
    left: 70%;
    animation-delay: 6s;
}

.particle-5 {
    top: 30%;
    left: 50%;
    animation-delay: 8s;
}

.particle-6 {
    top: 70%;
    left: 40%;
    animation-delay: 10s;
}

.particle-7 {
    top: 15%;
    left: 60%;
    animation-delay: 12s;
}

.particle-8 {
    top: 85%;
    left: 30%;
    animation-delay: 14s;
}

@keyframes particleFloat {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-100px) scale(1.5);
    }
}

.splash-content {
    position: relative;
    z-index: 3;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.logo-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-glow {
    display: none;
}

.logo-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    border-radius: 24px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.4);
    position: relative;
    z-index: 2;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.cross-icon {
    position: relative;
    width: 50px;
    height: 50px;
}

.cross-vertical {
    position: absolute;
    width: 6px;
    height: 40px;
    background: white;
    left: 50%;
    top: 5px;
    transform: translateX(-50%);
    border-radius: 3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cross-horizontal {
    position: absolute;
    width: 40px;
    height: 6px;
    background: white;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    border-radius: 3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cross-center {
    position: absolute;
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.app-title {
    color: white;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.app-tagline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    font-weight: 400;
    margin: -12px 0 0 0;
    letter-spacing: 0.5px;
}

.loading-dots {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.loading-dots .dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: dotPulse 1.4s ease-in-out infinite;
}

.loading-dots .dot:nth-child(1) {
    animation-delay: 0s;
}

.loading-dots .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {
    0%, 80%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    40% {
        transform: scale(1.3);
        opacity: 1;
    }
}

/* Onboarding Screens - Modern Design */
#onboarding-screen {
    flex-direction: column;
}

.onboarding-slide {
    display: none;
    flex: 1;
    flex-direction: column;
}

.onboarding-slide.active {
    display: flex;
    animation: slideInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.onboarding-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    padding: 0;
}

/* Onboarding Image Section */
.onboarding-image {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #bfdbfe 100%);
    position: relative;
    overflow: hidden;
    padding: 5vh 20px;
}

.onboarding-visual {
    position: relative;
    width: 100%;
    max-width: min(400px, 90vw);
    height: clamp(250px, 40vh, 350px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Floating Background Shapes */
.floating-shape {
    position: absolute;
    border-radius: 20px;
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    background: #3b82f6;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 80px;
    height: 80px;
    background: #1e3a8a;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
    border-radius: 50%;
}

.shape-3 {
    width: 60px;
    height: 60px;
    background: #60a5fa;
    bottom: 20%;
    left: 15%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Illustration Container */
.illustration-container {
    position: relative;
    width: clamp(200px, 35vh, 280px);
    height: clamp(200px, 35vh, 280px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Slide 1: Calendar & Appointment */
.calendar-card {
    width: 200px;
    height: 220px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(30, 58, 138, 0.2);
    padding: 20px;
    position: relative;
    animation: cardPop 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardPop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.calendar-header {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.calendar-month {
    height: 8px;
    width: 60%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 4px;
}

.calendar-month-small {
    height: 8px;
    width: 30%;
    background: #e5e7eb;
    border-radius: 4px;
}

/* Onboarding Calendar Styles Only */
.onboarding-slide .calendar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.onboarding-slide .calendar-day {
    aspect-ratio: 1;
    background: #f3f4f6;
    border-radius: 10px;
}

.onboarding-slide .calendar-day.active {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    position: relative;
}

.onboarding-slide .calendar-day.active::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.appointment-icon {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

.appointment-icon i {
    font-size: 32px;
    color: white;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(59, 130, 246, 0.6);
    }
}

.checkmark-circle {
    position: absolute;
    bottom: -15px;
    left: -15px;
    width: 50px;
    height: 50px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    animation: checkPop 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.checkmark-circle i {
    color: white;
    font-size: 22px;
}

@keyframes checkPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Slide 2: Doctor Profile */
.doctor-profile-card {
    width: 220px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(30, 58, 138, 0.2);
    padding: 24px;
    text-align: center;
    animation: cardPop 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.doctor-avatar-modern {
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
    position: relative;
}

.avatar-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    border-radius: 50%;
    border: 4px solid #eff6ff;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.online-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: #10b981;
    border-radius: 50%;
    border: 3px solid white;
    animation: pulse 2s ease-in-out infinite;
}

.doctor-info {
    margin-bottom: 16px;
}

.info-line {
    height: 10px;
    background: #e5e7eb;
    border-radius: 5px;
    margin-bottom: 8px;
}

.info-line.short {
    width: 60%;
    margin: 0 auto;
}

.rating-stars {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.rating-stars i {
    color: #fbbf24;
    font-size: 16px;
}

.specialist-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

.specialist-badge i {
    color: white;
    font-size: 26px;
}

.message-bubble {
    position: absolute;
    bottom: -15px;
    left: -15px;
    width: 55px;
    height: 55px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    animation: bounce 2s ease-in-out infinite;
}

.message-bubble i {
    color: #3b82f6;
    font-size: 24px;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Slide 3: Map & Clinics */
.map-container {
    width: 260px;
    height: 260px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(30, 58, 138, 0.2);
    position: relative;
    overflow: hidden;
    animation: cardPop 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.map-bg {
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, #f3f4f6 1px, transparent 1px),
        linear-gradient(0deg, #f3f4f6 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
}

.location-pin {
    position: absolute;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    animation: pinDrop 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.location-pin i {
    color: white;
    font-size: 20px;
}

.pin-1 {
    top: 20%;
    left: 15%;
    animation-delay: 0.2s;
}

.pin-2 {
    top: 35%;
    right: 20%;
    animation-delay: 0.4s;
}

.pin-3 {
    bottom: 30%;
    left: 25%;
    animation-delay: 0.6s;
}

.pin-4 {
    bottom: 20%;
    right: 15%;
    animation-delay: 0.8s;
}

@keyframes pinDrop {
    0% {
        transform: translateY(-100px) scale(0);
        opacity: 0;
    }
    70% {
        transform: translateY(5px) scale(1.1);
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.pulse-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.2);
    animation: pulsate 2s ease-out infinite;
}

@keyframes pulsate {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.clinic-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.4);
    animation: slideInBottom 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

@keyframes slideInBottom {
    from {
        transform: translateX(-50%) translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.counter-number {
    font-size: 24px;
    font-weight: 700;
    color: white;
    text-align: center;
}

.counter-label {
    height: 6px;
    width: 40px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 3px;
    margin: 4px auto 0;
}

/* Onboarding Content Section */
.onboarding-content {
    flex: 1;
    min-height: 0;
    padding: clamp(20px, 5vh, 48px) 24px clamp(20px, 4vh, 40px);
    text-align: center;
    background: white;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

.content-wrapper {
    max-width: 420px;
    margin: 0 auto;
}

.badge-pill {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1e3a8a;
    border-radius: 50px;
    font-size: clamp(11px, 2vh, 13px);
    font-weight: 600;
    margin-bottom: clamp(12px, 2.5vh, 24px);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.onboarding-title {
    font-size: clamp(22px, 4vh, 28px);
    font-weight: 700;
    color: #1f2937;
    margin-bottom: clamp(12px, 2vh, 16px);
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.onboarding-description {
    font-size: clamp(14px, 2.2vh, 16px);
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: clamp(24px, 4vh, 36px);
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.modern-btn {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    border: none;
    padding: clamp(14px, 2.2vh, 18px) clamp(32px, 5vw, 40px);
    border-radius: 16px;
    font-size: clamp(14px, 2.2vh, 16px);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    min-width: clamp(150px, 25vw, 180px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.3);
}

.modern-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(30, 58, 138, 0.4);
}

.modern-btn:active {
    transform: translateY(-1px);
}

.modern-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.modern-btn:hover i {
    transform: translateX(4px);
}

.onboarding-progress {
    margin-top: clamp(20px, 4vh, 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(12px, 2.5vh, 20px);
}

.progress-dots {
    display: flex;
    gap: 10px;
    align-items: center;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dot.active {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    width: 32px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.skip-link {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.skip-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3b82f6;
    transition: width 0.3s ease;
}

.skip-link:hover {
    color: #3b82f6;
}

.skip-link:hover::after {
    width: 100%;
}

/* Auth Screens */
.auth-container {
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: white;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.auth-header {
    text-align: center;
    padding: 40px 24px 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

/* Auth page logo styling */
.auth-header .logo-container {
    margin-bottom: 32px;
}

.auth-header .logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.2);
}

.auth-header .cross-vertical,
.auth-header .cross-horizontal {
    background: white;
}

.auth-header .cross-center {
    background: white;
}

.auth-header .app-title {
    color: #1f2937;
    font-size: 24px;
    font-weight: 700;
}

.auth-title {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.auth-subtitle {
    color: #6b7280;
    font-size: 16px;
    margin: 0;
}

.auth-form {
    flex: 1;
    padding: 32px 24px;
    max-width: 100%;
    width: 100%;
}

.input-group {
    position: relative;
    margin-bottom: 24px;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 18px;
    z-index: 2;
}

.form-input {
    width: 100%;
    padding: 18px 16px 18px 52px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    background: white;
    transition: all 0.3s ease;
    min-height: 56px;
}

.form-input:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
    font-size: 16px;
}

/* Button Styles */
.btn-primary {
    background: #1e40af;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Mobile-specific improvements */
@media (max-width: 767px) {
    .auth-header {
        padding: 30px 20px 15px 20px;
    }
    
    .auth-title {
        font-size: 28px;
    }
    
    .auth-form {
        padding: 24px 20px;
    }
    
    .form-input {
        padding: 16px 14px 16px 48px;
        min-height: 52px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .btn-full, .btn-social {
        padding: 16px 20px;
        min-height: 52px;
        font-size: 16px;
    }
    
    .input-group {
        margin-bottom: 20px;
    }
    
    /* Profile screen mobile improvements */
    .profile-header {
        padding: 16px 20px;
    }
    
    .profile-content {
        padding: 24px 20px;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
        font-size: 40px;
    }
    
    .edit-image-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
        right: calc(50% - 66px);
    }
    
    .profile-form .form-input {
        padding: 16px 18px;
        min-height: 52px;
        font-size: 16px;
    }
    
    .profile-form .btn-primary {
        padding: 16px 20px;
        min-height: 52px;
        font-size: 16px;
    }
    
    .profile-form .input-group {
        margin-bottom: 20px;
    }
}

.btn-full {
    width: 100%;
    margin-bottom: 24px;
    padding: 18px 24px;
    font-size: 16px;
    min-height: 56px;
}

.divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.divider span {
    background: white;
    padding: 0 16px;
    color: #6b7280;
    font-size: 14px;
}

.btn-social {
    width: 100%;
    padding: 18px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    color: #374151;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
    min-height: 56px;
}

.btn-social:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.social-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: #6b7280;
    font-size: 14px;
}

.auth-link {
    color: #1e40af;
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover {
    text-decoration: underline;
}

/* Profile Screen */
.profile-container {
    min-height: 100vh;
    background: white;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Success Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    max-width: 320px;
    width: 90%;
    margin: 0 20px;
    animation: modalSlideIn 0.3s ease-out;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #06b6d4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    animation: successPulse 0.6s ease-out;
}

.success-icon i {
    color: white;
    font-size: 32px;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 16px 0;
}

.modal-message {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 24px 0;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #1e40af;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Verification Code Inputs */
.verification-inputs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.verification-input {
    width: 48px;
    height: 48px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    background: white;
    transition: all 0.3s ease;
}

.verification-input:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.verification-input.filled {
    border-color: #1e40af;
    background: #eff6ff;
}

/* Auth Links */
.auth-links {
    margin-top: 24px;
    text-align: center;
}

.auth-links .auth-link {
    display: block;
    margin-bottom: 16px;
}

.resend-text {
    text-align: center;
    margin-top: 24px;
    color: #6b7280;
    font-size: 14px;
}

.profile-header {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.back-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #6b7280;
    cursor: pointer;
    padding: 8px;
    margin-right: 16px;
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    color: #1e40af;
    background: #f3f4f6;
}

.profile-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.profile-content {
    padding: 32px 24px;
    max-width: 100%;
    width: 100%;
}

.profile-image-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #9ca3af;
    border: 3px solid #f3f4f6;
}

.edit-image-btn {
    position: absolute;
    bottom: 5px;
    right: calc(50% - 60px);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1e40af;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
    transition: all 0.3s ease;
}

.edit-image-btn:hover {
    background: #1d4ed8;
    transform: scale(1.05);
}

.profile-form {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

.profile-form .input-group {
    margin-bottom: 24px;
}

.profile-form .form-input {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    background: white;
    transition: all 0.3s ease;
    min-height: 56px;
}

.profile-form .form-input:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.profile-form .form-input[readonly] {
    background: #f9fafb;
    color: #6b7280;
    cursor: not-allowed;
}

.profile-form .form-input::placeholder {
    color: #9ca3af;
    font-size: 16px;
}

.profile-form .btn-primary {
    width: 100%;
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 600;
    min-height: 56px;
    margin-top: 8px;
}

/* Responsive Design */
@media (min-width: 768px) {
    .onboarding-container {
        flex-direction: row;
        height: 100vh;
        max-height: 100vh;
    }
    
    .onboarding-image {
        flex: 1;
        min-height: 0;
        background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #bfdbfe 100%);
    }
    
    .onboarding-visual {
        max-width: 500px;
        height: clamp(350px, 50vh, 450px);
    }
    
    .illustration-container {
        width: clamp(280px, 40vh, 350px);
        height: clamp(280px, 40vh, 350px);
    }
    
    .calendar-card {
        width: 240px;
        height: 260px;
        padding: 24px;
    }
    
    .doctor-profile-card {
        width: 260px;
        padding: 28px;
    }
    
    .map-container {
        width: 300px;
        height: 300px;
    }
    
    .onboarding-content {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: clamp(40px, 8vh, 80px) clamp(40px, 6vw, 60px);
        text-align: left;
        overflow-y: auto;
    }
    
    .content-wrapper {
        max-width: 500px;
    }
    
    .badge-pill {
        font-size: 12px;
        margin-bottom: clamp(20px, 3vh, 28px);
    }
    
    .onboarding-title {
        font-size: clamp(28px, 5vh, 38px);
        margin-bottom: clamp(16px, 2.5vh, 20px);
    }
    
    .onboarding-description {
        font-size: clamp(15px, 2.2vh, 17px);
        margin-bottom: clamp(30px, 5vh, 40px);
        max-width: 450px;
        margin-left: 0;
    }
    
    .modern-btn {
        padding: clamp(16px, 2.5vh, 20px) clamp(40px, 6vw, 48px);
        font-size: clamp(15px, 2.2vh, 17px);
    }
    
    .onboarding-progress {
        align-items: flex-start;
        margin-top: clamp(32px, 5vh, 48px);
    }
}

@media (min-width: 1024px) {
    .onboarding-content {
        padding: clamp(60px, 10vh, 100px) clamp(60px, 8vw, 80px);
    }
    
    .onboarding-title {
        font-size: clamp(32px, 5.5vh, 44px);
        margin-bottom: clamp(18px, 3vh, 24px);
    }
    
    .onboarding-description {
        font-size: clamp(16px, 2.3vh, 18px);
        max-width: 500px;
    }
    
    .illustration-container {
        width: clamp(320px, 45vh, 400px);
        height: clamp(320px, 45vh, 400px);
    }
    
    .calendar-card {
        width: 260px;
        height: 280px;
    }
    
    .doctor-profile-card {
        width: 280px;
    }
    
    .map-container {
        width: 320px;
        height: 320px;
    }
    
    .auth-header {
        padding: 40px 80px 40px 80px;
    }
    
    .auth-form {
        padding: 50px 80px 80px 80px;
        max-width: 600px;
    }
    
    .profile-content {
        padding: 80px;
    }
    
    .profile-image {
        width: 160px;
        height: 160px;
        font-size: 64px;
    }
    
    .edit-image-btn {
        width: 44px;
        height: 44px;
        font-size: 20px;
        right: calc(50% - 82px);
    }
}

/* Additional responsive styles for auth and profile */
@media (min-width: 768px) {
    .auth-container {
        justify-content: center;
        padding: 0;
    }
    
    .auth-header {
        padding: 60px 60px 30px 60px;
    }
    
    .auth-form {
        padding: 40px 60px 60px 60px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .profile-content {
        padding: 60px;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .profile-form {
        max-width: 500px;
    }
    
    .profile-image {
        width: 140px;
        height: 140px;
        font-size: 56px;
    }
    
    .edit-image-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
        right: calc(50% - 70px);
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: scale(0.8) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes successPulse {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.screen.active {
    animation: fadeIn 0.5s ease-out;
}

.onboarding-slide.active {
    animation: slideIn 0.5s ease-out;
}

/* Alert Messages */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    animation: slideInDown 0.3s ease-out;
}

.alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.alert i {
    font-size: 18px;
    flex-shrink: 0;
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
