/* Login Page CSS - Pixel Perfect Polish & Fully Responsive */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
    /* Exact gradient match */
    background: 
        radial-gradient(circle at 15% 95%, rgba(255, 230, 200, 0.5) 0%, rgba(255,255,255,0) 50%),
        radial-gradient(circle at 85% 15%, rgba(191, 219, 254, 0.8) 0%, rgba(255,255,255,0) 60%),
        linear-gradient(135deg, #a5cbf5 0%, #eaf5ff 100%);
    background-attachment: fixed; /* Ensures gradient doesn't break on scroll on mobile */
    min-height: 100vh; /* changed from height to min-height for safer mobile spacing */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    /* overflow: hidden; Removed to allow scrolling on small screens if needed */
}

/* Glass Card - Mobile First Default */
.card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 36px;
    padding: 2rem 1.5rem 3rem 1.5rem; /* Tighter padding for mobile by default */
    width: 90%; /* Fluid width */
    max-width: 360px;
    box-shadow: 
        0 40px 100px -20px rgba(50, 50, 93, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    text-align: center;
    position: relative;
    border-bottom: 4px solid rgba(255, 255, 255, 0.1);
    margin: 20px auto; /* Safe area */
}

/* Shadow illusion at bottom of card */
.card::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 40px;
    right: 40px;
    height: 20px;
    background: rgba(0,0,0,0.05);
    border-radius: 50%;
    filter: blur(8px);
    z-index: -1;
}

/* Robot */
.robot-container {
    margin-bottom: 1rem;
}
.robot-img {
    width: 80px; /* Slightly smaller for mobile */
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1)); 
    transition: width 0.3s ease;
}

/* Typography */
h1 {
    font-size: 1.4rem; /* Smaller for mobile */
    font-weight: 700;
    margin: 0.5rem 0 2rem 0;
    color: #ffffff;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.25rem;
    position: relative;
}

/* Base Input Style */
.form-control {
    width: 100%;
    padding: 1rem 1.1rem; /* Comfortable touch area */
    border-radius: 16px;
    border: none;
    background: rgba(241, 245, 249, 0.8);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    font-size: 16px; /* 16px prevents zoom on iOS */
    font-family: inherit;
    font-weight: 700;
    color: #1e293b;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control::placeholder {
    color: #1e293b;
    font-weight: 700;
}

/* Active/Glowing Input */
.form-control:focus, .form-control.input-glow {
    outline: none;
    background: #ffffff;
    box-shadow: 
        0 0 0 2px rgba(255, 255, 255, 1),
        0 0 20px 0px rgba(255, 245, 220, 0.8), 
        0 10px 20px -5px rgba(255, 215, 100, 0.3);
    transform: translateY(-2px) scale(1.02);
}

/* 3D Button */
.btn-primary {
    width: 100%;
    height: 56px; /* Good touch target size */
    border-radius: 32px;
    border: none;
    background: linear-gradient(180deg, #7EB8F5 0%, #4A90E2 40%, #357ABD 100%);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    position: relative;
    box-shadow: 
        0 8px 15px -4px rgba(53, 122, 189, 0.4),
        inset 0 2px 0 rgba(255,255,255,0.3),
        0 6px 0 #285a8c;
    transition: all 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    -webkit-tap-highlight-color: transparent; /* Remove highlight on tap */
}

.btn-primary:active {
    transform: translateY(4px);
    box-shadow: 
        0 2px 5px -2px rgba(53, 122, 189, 0.4),
        inset 0 2px 0 rgba(255,255,255,0.1),
        0 2px 0 #285a8c;
}

/* Forgot Password */
.forgot-link {
    display: block;
    color: #0f172a;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: -5px;
    padding: 10px; /* Increase hit area for touch */
}

/* Checkbox (if needed in future, currently not in HTML but good practice) */
input[type="checkbox"] {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

/* Hide Logo Text wrapper */
.visabot-logo { display: none; }

/* --- Responsive Breakpoints --- */

/* Tablet & Up (min-width: 481px) */
@media (min-width: 481px) {
    .card {
        padding: 3rem 2.5rem 4rem 2.5rem;
        width: 100%;
        max-width: 360px;
    }
    
    .robot-img {
        width: 90px;
    }

    h1 {
        font-size: 1.6rem;
    }

    .form-control {
        padding: 1.1rem 1.25rem;
        font-size: 1.15rem;
    }

    .btn-primary {
        height: 64px;
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
}

/* Landscape on Mobile (height-constrained) */
@media (max-height: 600px) and (orientation: landscape) {
    body {
        height: auto;
        padding: 20px 0;
        align-items: flex-start; /* Allow scrolling from top */
    }
    
    .card {
        margin: 0;
    }
    
    h1 {
        margin-bottom: 1rem;
    }
}
