/* ================================================
   E-LEARNING PORTAL - PROFESSIONAL STYLESHEET
   Holy Cross College - CACE
   ================================================ */

/* ================== CSS VARIABLES ================== */
:root {
    /* Primary Colors */
    --primary-900: #1a237e;
    --primary-800: #283593;
    --primary-700: #303f9f;
    --primary-600: #3949ab;
    --primary-500: #3f51b5;
    
    /* Secondary Colors */
    --secondary-500: #00bcd4;
    --secondary-400: #26c6da;
    --secondary-300: #4dd0e1;
    
    /* Accent Colors */
    --accent-purple: #7c3aed;
    --accent-pink: #ec4899;
    --accent-gold: #00bcd4;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    
    /* Neutral Colors */
    --neutral-900: #0f172a;
    --neutral-800: #1e293b;
    --neutral-700: #334155;
    --neutral-600: #475569;
    --neutral-500: #64748b;
    --neutral-400: #94a3b8;
    --neutral-300: #cbd5e1;
    --neutral-200: #e2e8f0;
    --neutral-100: #f1f5f9;
    --neutral-50: #f8fafc;
    --white: #ffffff;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-900) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-500) 0%, var(--accent-purple) 100%);
    --gradient-dark: linear-gradient(180deg, var(--neutral-800) 0%, var(--neutral-900) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(0, 188, 212, 0.3);
    --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.3);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Z-Index */
    --z-background: -1;
    --z-base: 1;
    --z-robot: 10;
    --z-content: 20;
    --z-header: 100;
    --z-modal: 1000;
}

/* ================== RESET & BASE ================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background-color: var(--neutral-900);
    color: var(--neutral-700);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input {
    font-family: inherit;
}

/* ================== ANIMATED BACKGROUND ================== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-background);
    overflow: hidden;
}

.gradient-overlay {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(0, 188, 212, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(26, 35, 126, 0.8) 0%, var(--neutral-900) 70%);
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

.floating-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-purple);
    top: 10%;
    left: -10%;
    animation: floatShape 20s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary-500);
    top: 60%;
    right: -5%;
    animation: floatShape 18s ease-in-out infinite reverse;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--primary-700);
    bottom: 10%;
    left: 30%;
    animation: floatShape 22s ease-in-out infinite;
}

.shape-4 {
    width: 200px;
    height: 200px;
    background: var(--accent-pink);
    top: 30%;
    right: 30%;
    animation: floatShape 25s ease-in-out infinite reverse;
}

@keyframes floatShape {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(20px, 10px) scale(1.05);
    }
}

/* ================== PAGE WRAPPER ================== */
.page-wrapper {
    position: relative;
    z-index: var(--z-content);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ================== HEADER STYLES ================== */
.main-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: var(--z-header);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) 0;
    gap: var(--space-lg);
}

.logo-section {
    flex-shrink: 0;
   
}
.college-logo {
    height: 80px;
    transition: transform var(--transition-base);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.college-logo:hover {
    transform: scale(1.05);
}

.centenary-logo {
    height: 85px;
    transition: transform var(--transition-base);
}

.centenary-logo:hover {
    transform: scale(1.05);
}

.college-info {
    flex: 1;
    text-align: center;
}

.cace-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: #00bcd4;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: var(--space-xs);
}

.college-name {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-800);
    letter-spacing: 0.5px;
    margin-bottom: var(--space-xs);
    line-height: 1.2;
}

.affiliation {
    font-size: 0.875rem;
    color: var(--neutral-600);
    font-weight: 500;
    margin-bottom: var(--space-xs);
}

.accreditation {
    font-size: 0.8125rem;
    color: var(--neutral-700);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xs);
}

.badge-naac {
    background: linear-gradient(135deg, var(--accent-red), #c0392b);
    color: var(--white);
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
}

.location {
    font-size: 0.8125rem;
    color: var(--neutral-500);
    font-weight: 500;
}

.location i {
    color: var(--accent-red);
    margin-right: var(--space-xs);
}

/* Mobile Header */
.mobile-header {
    display: none;
    background: var(--white);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
}

.mobile-header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-lg);
}

.mobile-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-800);
    margin-bottom: var(--space-xs);
}

.mobile-subtitle {
    font-size: 0.875rem;
    color: var(--accent-gold);
    font-weight: 600;
}

/* Header Stripe */
.header-stripe {
    height: 4px;
    background: var(--gradient-secondary);
}

/* ================== ROBOT STYLES ================== */
.robot-container {
    position: fixed;
    z-index: var(--z-robot);
    pointer-events: none;
}

.robot-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.robot-left {
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    height: 420px;
}

.robot-right {
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 400px;
}

/* Robot Animations */
.robot-body {
    animation: robotFloat 3s ease-in-out infinite;
}

.robot-head {
    animation: robotFloat 3s ease-in-out 0.1s infinite;
}

.robot-arm-left {
    transform-origin: right center;
    animation: armSwingLeft 3s ease-in-out infinite;
}

.robot-arm-right {
    transform-origin: left center;
    animation: armSwingRight 3s ease-in-out infinite;
}

.robot-eye {
    animation: eyeBlink 4s ease-in-out infinite;
}

.robot-shadow {
    animation: shadowPulse 3s ease-in-out infinite;
}

.led-strip {
    animation: ledPulse 2s ease-in-out infinite;
}

.robot-mouth {
    animation: mouthTalk 0.6s ease-in-out infinite;
}

@keyframes robotFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes armSwingLeft {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-8deg); }
}

@keyframes armSwingRight {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(8deg); }
}

@keyframes eyeBlink {
    0%, 45%, 55%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.1); }
}

@keyframes shadowPulse {
    0%, 100% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(0.85); opacity: 0.25; }
}

@keyframes ledPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes mouthTalk {
    0%, 100% { height: 8px; }
    50% { height: 3px; }
}

/* Speech Bubbles */
.robot-speech-bubble {
    position: absolute;
    background: var(--white);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--neutral-800);
    max-width: 200px;
    pointer-events: auto;
    animation: bubbleFloat 3s ease-in-out infinite;
}

.left-bubble {
    top: 10%;
    left: calc(100% + 20px);
}

.right-bubble {
    top: 10%;
    right: calc(100% + 20px);
}

.bubble-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border: 10px solid transparent;
}

.left-bubble .bubble-arrow {
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    border-right-color: var(--white);
    border-left: none;
}

.right-bubble .bubble-arrow {
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    border-left-color: var(--white);
    border-right: none;
}

@keyframes bubbleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ================== MAIN CONTENT ================== */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl) var(--space-md);
}

.login-container {
    width: 100%;
    max-width: 440px;
}

/* ================== LOGIN CARD ================== */
.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    position: relative;
    animation: cardEntrance 0.8s ease-out;
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Card Decorations */
.card-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    overflow: hidden;
    pointer-events: none;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.circle-1 {
    width: 200px;
    height: 200px;
    background: var(--primary-700);
    top: -100px;
    right: -50px;
}

.circle-2 {
    width: 150px;
    height: 150px;
    background: var(--secondary-500);
    top: -50px;
    left: -50px;
}

/* Card Header */
.card-header-section {
    padding: var(--space-2xl) var(--space-xl) var(--space-lg);
    text-align: center;
    position: relative;
}

.logo-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.logo-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-700), var(--secondary-500));
    padding: 4px;
    box-shadow: var(--shadow-xl);
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { box-shadow: var(--shadow-xl); }
    50% { box-shadow: var(--shadow-glow); }
}

.cace-logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: var(--white);
}

.portal-title {
    font-family: var(--font-display);
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary-800);
    margin-bottom: var(--space-xs);
}

.portal-subtitle {
    font-size: 0.9375rem;
    color: var(--neutral-500);
    font-weight: 500;
}

/* Time Display */
.time-display {
    display: flex;
    justify-content: center;
    padding: 0 var(--space-xl);
    margin-bottom: var(--space-lg);
}

.time-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--neutral-100);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-700);
}

.time-badge i {
    color: var(--secondary-500);
}

/* Alert Styles */
.alert {
    margin: 0 var(--space-xl) var(--space-lg);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 0.875rem;
    font-weight: 500;
    animation: alertSlide 0.5s ease-out;
}

@keyframes alertSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--accent-red);
    color: var(--accent-red);
}

/* Login Form */
.login-form {
    padding: 0 var(--space-xl) var(--space-lg);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
    color: var(--neutral-400);
    font-size: 1.125rem;
    transition: color var(--transition-fast);
    z-index: 2;
}

.form-input {
    width: 100%;
    height: 56px;
    padding: 0 var(--space-lg);
    padding-left: 52px;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 500;
    color: var(--neutral-800);
    background: var(--white);
    transition: all var(--transition-base);
}

.form-input::placeholder {
    color: var(--neutral-400);
    font-weight: 400;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-600);
    box-shadow: 0 0 0 4px rgba(63, 81, 181, 0.1);
}

.form-input:focus + .password-toggle + .input-focus-line,
.form-input:focus ~ .input-focus-line {
    transform: scaleX(1);
}

.input-wrapper:focus-within .input-icon {
    color: var(--primary-600);
}

.input-focus-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--gradient-secondary);
    transform: scaleX(0) translateX(-50%);
    transform-origin: center;
    transition: transform var(--transition-base);
    border-radius: var(--radius-full);
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
    color: var(--neutral-400);
    font-size: 1rem;
    padding: var(--space-sm);
    transition: color var(--transition-fast);
    z-index: 2;
}

.password-toggle:hover {
    color: var(--primary-600);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.remember-me {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--neutral-600);
}

.remember-me input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--neutral-300);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.remember-me input:checked + .checkmark {
    background: var(--primary-600);
    border-color: var(--primary-600);
}

.remember-me input:checked + .checkmark::after {
    content: '✓';
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
}

/* Login Button */
.btn-login {
    width: 100%;
    height: 56px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px rgba(26, 35, 126, 0.3);
}

.btn-login::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-secondary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.btn-login:hover::before {
    opacity: 1;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 35, 126, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-text,
.btn-icon {
    position: relative;
    z-index: 1;
}

.btn-icon {
    transition: transform var(--transition-base);
}

.btn-login:hover .btn-icon {
    transform: translateX(4px);
}

.btn-loader {
    display: none;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-login.loading .btn-text,
.btn-login.loading .btn-icon {
    display: none;
}

.btn-login.loading .btn-loader {
    display: block;
}

/* Card Footer */
.card-footer-section {
    padding: var(--space-lg) var(--space-xl) var(--space-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
}

.forgot-link,
.help-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-600);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    transition: color var(--transition-fast);
}

.forgot-link:hover,
.help-link:hover {
    color: var(--secondary-500);
}

.divider {
    width: 1px;
    height: 20px;
    background: var(--neutral-300);
}

/* Security Notice */
.security-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
}

.security-notice i {
    color: var(--accent-green);
}

/* ================== FOOTER ================== */
.main-footer {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: var(--space-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    justify-content: center;
}

.footer-logo {
    font-weight: 800;
    font-size: 1rem;
    color: var(--accent-gold);
    letter-spacing: 2px;
}

.footer-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--secondary-500);
    transform: translateY(-3px);
    color: var(--white);
}

/* ================== RESPONSIVE DESIGN ================== */

/* Extra Large Screens (1400px+) */
@media (min-width: 1400px) {
    .robot-left {
        left: 8%;
        width: 380px;
        height: 500px;
    }
    
    .robot-right {
        right: 8%;
        width: 350px;
        height: 480px;
    }
}

/* Large Screens (1200px - 1399px) */
@media (max-width: 1399px) {
    .robot-left {
        left: 3%;
        width: 280px;
        height: 380px;
    }
    
    .robot-right {
        right: 3%;
        width: 260px;
        height: 360px;
    }
}

/* Medium Screens (992px - 1199px) */
@media (max-width: 1199px) {
    .college-name {
        font-size: 1.5rem;
    }
    
    .college-logo,
    .centenary-logo {
        height: 70px;
    }
    
    .robot-left {
        width: 220px;
        height: 300px;
    }
    
    .robot-right {
        width: 200px;
        height: 280px;
    }
    
    .robot-speech-bubble {
        font-size: 0.75rem;
        padding: var(--space-sm) var(--space-md);
        max-width: 150px;
    }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .main-header {
        display: none;
    }
    
    .mobile-header {
        display: block;
    }
    
    .robot-left {
        left: 2%;
        width: 150px;
        height: 200px;
        top: auto;
        bottom: 120px;
        transform: none;
    }
    
    .robot-right {
        right: 2%;
        width: 130px;
        height: 180px;
        top: auto;
        bottom: 120px;
        transform: none;
    }
    
    .robot-speech-bubble {
        display: none;
    }
    
    .login-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .card-header-section {
        padding: var(--space-xl) var(--space-lg) var(--space-md);
    }
    
    .logo-ring {
        width: 100px;
        height: 100px;
    }
    
    .portal-title {
        font-size: 1.5rem;
    }
}

/* Small Tablet (576px - 767px) */
@media (max-width: 767px) {
    .robot-left,
    .robot-right {
        width: 100px;
        height: 140px;
        bottom: 100px;
        opacity: 0.6;
    }
    
    .main-content {
        padding: var(--space-lg) var(--space-md);
    }
    
    .login-form,
    .card-header-section,
    .card-footer-section {
        padding-left: var(--space-lg);
        padding-right: var(--space-lg);
    }
    
    .form-input {
        height: 52px;
        font-size: 0.9375rem;
    }
    
    .btn-login {
        height: 52px;
    }
}

/* Mobile (up to 575px) */
@media (max-width: 575px) {
    .robot-left,
    .robot-right {
        width: 70px;
        height: 100px;
        bottom: 80px;
        opacity: 0.4;
    }
    
    .mobile-logo {
        width: 80px;
        height: 80px;
    }
    
    .mobile-title {
        font-size: 1.125rem;
    }
    
    .login-container {
        padding: 0 var(--space-sm);
    }
    
    .login-card {
        border-radius: var(--radius-xl);
    }
    
    .card-header-section {
        padding: var(--space-lg) var(--space-md) var(--space-md);
    }
    
    .logo-ring {
        width: 90px;
        height: 90px;
    }
    
    .portal-title {
        font-size: 1.375rem;
    }
    
    .portal-subtitle {
        font-size: 0.875rem;
    }
    
    .login-form,
    .card-footer-section {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }
    
    .form-input {
        height: 50px;
        padding-left: 48px;
    }
    
    .input-icon {
        left: var(--space-md);
        font-size: 1rem;
    }
    
    .btn-login {
        height: 50px;
        font-size: 0.9375rem;
    }
    
    .card-footer-section {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .divider {
        display: none;
    }
    
    .footer-brand {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-text {
        font-size: 0.75rem;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
}

/* Extra Small Mobile (up to 400px) */
@media (max-width: 400px) {
    .robot-left,
    .robot-right {
        display: none;
    }
    
    .time-badge {
        font-size: 0.75rem;
        padding: var(--space-xs) var(--space-md);
    }
    
    .form-group {
        margin-bottom: var(--space-md);
    }
    
    .forgot-link,
    .help-link {
        font-size: 0.8125rem;
    }
}

/* Landscape Mode on Mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .main-content {
        padding: var(--space-md);
    }
    
    .card-header-section {
        padding-top: var(--space-md);
        padding-bottom: var(--space-sm);
    }
    
    .logo-ring {
        width: 70px;
        height: 70px;
    }
    
    .portal-title {
        font-size: 1.25rem;
        margin-bottom: 0;
    }
    
    .portal-subtitle {
        display: none;
    }
    
    .time-display {
        margin-bottom: var(--space-sm);
    }
    
    .form-group {
        margin-bottom: var(--space-sm);
    }
    
    .form-input,
    .btn-login {
        height: 44px;
    }
    
    .card-footer-section {
        padding-top: var(--space-sm);
        padding-bottom: var(--space-md);
    }
    
    .robot-left,
    .robot-right {
        display: none;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .login-card {
        border: 0.5px solid rgba(255, 255, 255, 0.1);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .login-card {
        background: rgba(30, 41, 59, 0.95);
    }
    
    .form-input {
        background: var(--neutral-800);
        border-color: var(--neutral-700);
        color: var(--neutral-100);
    }
    
    .portal-title {
        color: var(--neutral-100);
    }
    
    .portal-subtitle {
        color: var(--neutral-400);
    }
}

/* Print Styles */
@media print {
    .animated-bg,
    .robot-container,
    .footer-social,
    .particles {
        display: none !important;
    }
    
    .page-wrapper {
        background: white;
    }
    
    .login-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}