:root {
            --primary-blue: #2563eb;
            --primary-dark-blue: #1d4ed8;
            --primary-green: #10b981;
            --accent: #f59e0b;
            --white: #ffffff;
            --off-white: #f8fafc;
            --light-gray: #f1f5f9;
            --text-dark: #1e293b;
            --text-medium: #64748b;
            --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
            --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
            --radius-lg: 24px; /* Increased from 16px to 24px */
            --radius-xl: 25px; /* Added extra large radius */
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html, body {
            height: 100%;
            width: 100%;
            font-family: 'Inter', sans-serif;
            background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
            color: var(--text-dark);
            overflow: hidden;
        }

        body {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 4vw;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
        }

        /* Animated particles background */
        .bg-decoration {
            position: fixed;
            z-index: -1;
            pointer-events: none;
        }

        .circle-1 {
            width: min(300px, 40vw);
            height: min(300px, 40vw);
            border-radius: 50%;
            background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), transparent);
            top: -100px;
            right: -100px;
            animation: float 20s infinite ease-in-out;
        }

        .circle-2 {
            width: min(400px, 50vw);
            height: min(400px, 50vw);
            border-radius: 50%;
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), transparent);
            bottom: -150px;
            left: -150px;
            animation: float 25s infinite ease-in-out reverse;
        }

        .circle-3 {
            width: min(200px, 30vw);
            height: min(200px, 30vw);
            border-radius: 50%;
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), transparent);
            top: 50%;
            left: 10%;
            animation: float 15s infinite ease-in-out;
        }

        .circle-4 {
            width: min(150px, 25vw);
            height: min(150px, 25vw);
            border-radius: 50%;
            background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), transparent);
            top: 20%;
            right: 15%;
            animation: float 18s infinite ease-in-out reverse;
        }

        .circle-5 {
            width: min(250px, 35vw);
            height: min(250px, 35vw);
            border-radius: 50%;
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), transparent);
            bottom: 20%;
            right: 20%;
            animation: float 22s infinite ease-in-out;
        }

        @keyframes float {
            0%, 100% { transform: translate(0, 0) rotate(0deg); }
            25% { transform: translate(20px, 20px) rotate(5deg); }
            50% { transform: translate(-15px, 10px) rotate(-5deg); }
            75% { transform: translate(10px, -15px) rotate(3deg); }
        }

        /* Main login container - Increased corner radius */
        .login-container {
            width: 100%;
            max-width: min(380px, 85vw);
            background: var(--white);
            border-radius: var(--radius-xl); /* Changed to larger radius */
            box-shadow: var(--shadow-xl);
            transition: var(--transition);
            animation: slideUp 0.6s ease-out;
            position: relative;
            display: flex;
            flex-direction: column;
            transform-origin: center;
            overflow: hidden; /* Ensures child elements respect the rounded corners */
        }

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

        /* Header - Adjusted for rounded corners */
        .login-header {
            background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
            padding: clamp(18px, 5vh, 28px) clamp(12px, 3vw, 20px);
            text-align: center;
            color: var(--white);
            position: relative;
            overflow: hidden;
            flex-shrink: 0;
            /* No separate border-radius needed as container handles it */
        }

        .login-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: 
                radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
            background-size: 25px 25px;
            opacity: 0.2;
        }

        .logo-container {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: clamp(6px, 0.8vw, 10px);
            margin-bottom: clamp(6px, 1.2vh, 10px);
        }

        .logo-icon {
            width: clamp(28px, 3.5vw, 36px);
            height: clamp(28px, 3.5vw, 36px);
            background: rgba(255, 255, 255, 0.2);
            border-radius: 10px; /* Slightly increased to match new style */
            display: flex;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(10px);
            flex-shrink: 0;
        }

        .logo-icon i {
            font-size: clamp(14px, 1.8vw, 18px);
        }

        .logo-text {
            font-family: 'Poppins', sans-serif;
            font-size: clamp(18px, 2.5vw, 24px);
            font-weight: 700;
            letter-spacing: -0.5px;
        }

        .pro-badge {
            background: var(--accent);
            color: var(--white);
            font-size: clamp(9px, 1.1vw, 11px);
            font-weight: 700;
            padding: clamp(2px, 0.4vw, 3px) clamp(6px, 0.8vw, 8px);
            border-radius: 16px;
            margin-left: clamp(4px, 0.6vw, 8px);
            vertical-align: middle;
            box-shadow: 0 3px 5px rgba(245, 158, 11, 0.3);
        }

        .welcome-message {
            font-size: clamp(11px, 1.3vw, 13px);
            font-weight: 400;
            opacity: 0.9;
            line-height: 1.4;
            margin-top: clamp(4px, 0.6vh, 6px);
        }

        /* Content area */
        .login-content {
            padding: clamp(16px, 4vh, 24px) clamp(16px, 3.5vw, 24px);
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .doctor-greeting {
            font-family: 'Poppins', sans-serif;
            font-size: clamp(16px, 2.2vw, 20px);
            font-weight: 600;
            color: var(--text-dark);
            margin-bottom: clamp(4px, 0.8vh, 6px);
        }

        .instruction {
            font-size: clamp(12px, 1.4vw, 13px);
            color: var(--text-medium);
            line-height: 1.4;
            margin-bottom: clamp(16px, 3vh, 20px);
        }

        /* Google button - Increased corner radius */
        .google-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            padding: clamp(11px, 2.2vh, 13px) clamp(14px, 2.5vw, 18px);
            background: var(--white);
            border: 2px solid var(--light-gray);
            border-radius: 14px; /* Increased from 12px */
            font-size: clamp(12px, 1.5vw, 14px);
            font-weight: 600;
            color: var(--text-dark);
            cursor: pointer;
            transition: var(--transition);
            box-shadow: var(--shadow-lg);
            position: relative;
            overflow: hidden;
            z-index: 1;
            flex-shrink: 0;
        }

        .google-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 0%;
            height: 100%;
            background: linear-gradient(90deg, rgba(37, 99, 235, 0.05), rgba(16, 185, 129, 0.05));
            transition: var(--transition);
            z-index: -1;
        }

        .google-btn:hover::before {
            width: 100%;
        }

        .google-btn:hover {
            border-color: var(--primary-blue);
            transform: translateY(-3px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }

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

        .google-icon {
            width: clamp(18px, 2.2vw, 22px);
            height: clamp(18px, 2.2vw, 22px);
            margin-right: clamp(10px, 1.5vw, 14px);
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .google-icon svg {
            width: 100%;
            height: 100%;
        }

        /* Divider */
        .divider {
            display: flex;
            align-items: center;
            margin: clamp(16px, 3vh, 20px) 0;
            color: var(--text-medium);
            font-size: clamp(10px, 1.2vw, 11px);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            flex-shrink: 0;
        }

        .divider::before,
        .divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
        }

        .divider::before {
            margin-right: clamp(10px, 1.2vw, 12px);
        }

        .divider::after {
            margin-left: clamp(10px, 1.2vw, 12px);
        }

        /* Security info - Increased corner radius */
        .security-info {
            background: linear-gradient(90deg, rgba(37, 99, 235, 0.05), rgba(16, 185, 129, 0.05));
            border-radius: 12px; /* Increased from 10px */
            padding: clamp(12px, 2vh, 14px);
            margin-top: clamp(14px, 2.5vh, 16px);
            border-left: 4px solid var(--primary-blue);
            display: flex;
            align-items: center;
            flex-shrink: 0;
        }

        .security-icon {
            background: var(--primary-blue);
            color: var(--white);
            width: clamp(24px, 3vw, 30px);
            height: clamp(24px, 3vw, 30px);
            border-radius: 10px; /* Increased from 8px */
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: clamp(8px, 1.2vw, 12px);
            flex-shrink: 0;
        }

        .security-icon i {
            font-size: clamp(12px, 1.5vw, 14px);
        }

        .security-text {
            font-size: clamp(11px, 1.3vw, 12px);
            font-weight: 500;
            color: var(--primary-dark-blue);
            line-height: 1.3;
        }

        /* Terms */
        .terms {
            margin-top: clamp(14px, 2.5vh, 16px);
            font-size: clamp(10px, 1.1vw, 11px);
            color: var(--text-medium);
            text-align: center;
            line-height: 1.4;
            flex-shrink: 0;
        }

        .terms a {
            color: var(--primary-blue);
            text-decoration: none;
            font-weight: 500;
            position: relative;
        }

        .terms a::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 1px;
            background: var(--primary-blue);
            transition: width 0.3s ease;
        }

        .terms a:hover::after {
            width: 100%;
        }

        /* Footer */
        .login-footer {
            background: var(--off-white);
            padding: clamp(14px, 2.5vh, 16px) clamp(16px, 3vw, 22px);
            text-align: center;
            border-top: 1px solid var(--light-gray);
            color: var(--text-medium);
            font-size: clamp(11px, 1.3vw, 12px);
            flex-shrink: 0;
        }

        .stats {
            display: flex;
            justify-content: center;
            gap: clamp(12px, 2.5vw, 20px);
            margin-top: clamp(8px, 1.2vh, 10px);
        }

        .stat-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            min-width: 0;
        }

        .stat-number {
            font-size: clamp(13px, 1.8vw, 16px);
            font-weight: 700;
            color: var(--primary-blue);
            line-height: 1;
        }

        .stat-label {
            font-size: clamp(9px, 1.1vw, 10px);
            color: var(--text-medium);
            margin-top: clamp(2px, 0.4vh, 3px);
            white-space: nowrap;
        }

        /* Loading animation */
        .btn-loading {
            pointer-events: none;
            opacity: 0.8;
        }

        .btn-loading i {
            animation: spin 1s linear infinite;
        }

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

        /* Success animation */
        @keyframes successPulse {
            0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
            70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
            100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
        }

        .success-animation {
            animation: successPulse 1.5s infinite;
            background: linear-gradient(90deg, var(--primary-green), #059669) !important;
            color: white !important;
            border-color: var(--primary-green) !important;
        }

        /* Error message */
        .error-message {
            background: linear-gradient(90deg, rgba(239, 68, 68, 0.1), transparent);
            color: #dc2626;
            padding: 10px 14px;
            border-radius: 10px; /* Increased from 8px */
            margin-top: 12px;
            font-size: 12px;
            font-weight: 500;
            border-left: 3px solid #dc2626;
            display: flex;
            align-items: center;
            gap: 8px;
            animation: slideIn 0.3s ease-out;
        }

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

        /* Responsive adjustments */
        @media (max-height: 600px) {
            body {
                padding: 2vw;
            }
            
            .circle-1, .circle-2, .circle-3, .circle-4, .circle-5 {
                opacity: 0.5;
            }
        }

        @media (max-height: 500px) {
            .welcome-message, .stats {
                display: none;
            }
            
            .bg-decoration {
                display: none;
            }
        }

        @media (max-width: 768px) and (orientation: landscape) {
            body {
                padding: 2vw;
            }
            
            .login-container {
                max-width: 85vw;
                border-radius: 20px; /* Slightly smaller on landscape */
            }
            
            .login-content {
                padding: 12px 16px;
            }
            
            .login-header {
                padding: 12px 16px;
            }
            
            .bg-decoration {
                opacity: 0.3;
            }
        }

        @media (max-width: 480px) {
            .circle-1, .circle-2, .circle-3, .circle-4, .circle-5 {
                display: none;
            }
            
            .login-container {
                max-width: 90vw;
                border-radius: 20px; /* Slightly smaller on very small screens */
            }
        }

        /* Prevent text selection on mobile */
        * {
            -webkit-tap-highlight-color: transparent;
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            user-select: none;
        }

        /* Allow text selection only on specific elements */
        .terms, .instruction, .welcome-message, .security-text {
            -webkit-user-select: text;
            user-select: text;
        }

        /* Dark mode support */
        @media (prefers-color-scheme: dark) {
            :root {
                --white: #1e293b;
                --off-white: #0f172a;
                --light-gray: #334155;
                --text-dark: #f1f5f9;
                --text-medium: #e2e8f0;
            }
            
            body {
                background: linear-gradient(135deg, #0c4a6e 0%, #064e3b 100%);
            }
            
            .login-container {
                box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
            }
            
            .google-btn {
                background: #334155;
                border-color: #475569;
                color: #e2e8f0;
            }
            
            .google-btn:hover {
                border-color: var(--primary-blue);
            }
            
            .circle-1, .circle-2, .circle-3, .circle-4, .circle-5 {
                opacity: 0.2;
            }
        }