/* Modern Font Import - Inter + Space Grotesk */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* Reset & Global styles */
:root {
    --primary-color: #025982;
    --primary-dark: #01425e;
    --primary-light: #f0f7fb;
    --accent-color: #ff6b6b;
    --accent-hover: #ff5252;
    --text-primary: #1a1a2e;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-dark: #001a29;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --border-radius: 0.75rem;
    --border-radius-lg: 1.25rem;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Login Section */
.login-section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f4f8 0%, #e2ecf3 50%, #d9e8f2 100%);
}

/* Login Container */
.login-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f4f8 0%, #e2ecf3 50%, #d9e8f2 100%);
}

/* Background Shapes - Floating animations */
.shape {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
}

.shape-1 {
    top: -150px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(2, 89, 130, 0.08), rgba(2, 89, 130, 0.02));
    animation: floatShape1 20s ease-in-out infinite;
}

.shape-2 {
    bottom: -200px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(2, 89, 130, 0.05), rgba(2, 89, 130, 0.01));
    animation: floatShape2 25s ease-in-out infinite;
}

.shape-3 {
    top: 40%;
    left: 15%;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(2, 89, 130, 0.04), rgba(255, 107, 107, 0.02));
    animation: floatShape3 18s ease-in-out infinite;
}

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

@keyframes floatShape2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -25px) rotate(-5deg); }
    66% { transform: translate(-20px, 20px) rotate(4deg); }
}

@keyframes floatShape3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(15px, -15px) scale(1.05); }
}

/* Login Wrapper - Glass-morphism Split Screen */
.login-wrapper {
    display: flex;
    width: 100%;
    max-width: 800px;
    min-height: 480px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    z-index: 1;
    position: relative;
}

/* Login Form Container */
.login-form-container {
    width: 50%;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
}

/* Brand Section */
.brand-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.25rem;
}

.brand-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
    box-shadow: 0 8px 24px rgba(2, 89, 130, 0.3);
    transition: var(--transition-smooth);
}

.brand-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 28px rgba(2, 89, 130, 0.35);
}

.login-title {
    font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    text-align: center;
    letter-spacing: -0.02em;
}

/* Welcome Text */
.welcome-text {
    text-align: center;
    margin-bottom: 1.5rem;
}

.welcome-text h2 {
    font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.welcome-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 90%;
    margin: 0 auto;
}

/* Alert Styles */
.alert-danger {
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    border-radius: var(--border-radius);
    background: rgba(255, 107, 107, 0.08);
    border: 1px solid rgba(255, 107, 107, 0.2);
    color: var(--accent-color);
}

/* Login Form */
.login-form {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Fix for input group and form control */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--border-radius);
    background-color: var(--bg-light);
    transition: var(--transition-smooth);
    flex-wrap: nowrap;
    overflow: hidden;
}

.input-group:focus-within {
    border-color: var(--primary-color);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(2, 89, 130, 0.08);
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-light);
    z-index: 2;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.input-group:focus-within .input-icon {
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    height: 100%;
    padding: 0.7rem 1rem 0.7rem 2.5rem;
    border: none !important;
    border-radius: var(--border-radius);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 0.9rem;
    background-color: transparent !important;
    color: var(--text-primary);
    outline: none !important;
    box-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    z-index: 1;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
    -webkit-box-shadow: none !important;
    background-color: transparent !important;
}

.form-control::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

/* Ensure no border/outline on any part of the input group */
.input-group:focus-within,
.input-group *:focus-within {
    outline: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
}

/* Remove any internal highlighting or borders */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--bg-white) inset !important;
    box-shadow: 0 0 0 30px var(--bg-white) inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    transition: background-color 5000s ease-in-out 0s;
    background-color: transparent !important;
}

/* Additional fix for password input type specifically */
input[type="password"] {
    border: none !important;
    outline: none !important;
    background-image: none !important;
    background-color: transparent !important;
    color: var(--text-primary) !important;
    font-family: sans-serif !important;
    letter-spacing: 0.1em;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    z-index: 2;
    padding: 0.5rem;
    outline: none !important;
    box-shadow: none !important;
    transition: var(--transition-smooth);
}

.password-toggle:hover {
    color: var(--primary-color);
}

.password-toggle:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Form Group */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    margin-bottom: 0.4rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

/* Form Options */
.form-options {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-check {
    display: flex;
    align-items: center;
}

.form-check-input {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.forgot-password {
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.forgot-password:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Login Button - Shimmer Effect */
.btn-login {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 0.85rem 1.25rem;
    border-radius: 50px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 14px rgba(2, 89, 130, 0.25);
    margin-bottom: 1.25rem;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(2, 89, 130, 0.35);
}

.btn-login:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 89, 130, 0.3);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 1.25rem 0;
    text-align: center;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.divider span {
    padding: 0 0.75rem;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Signup Option */
.signup-option {
    text-align: center;
    margin-top: auto;
    padding-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.signup-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.signup-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Side Content - Modern Gradient */
.login-side-content {
    width: 50%;
    background: linear-gradient(145deg, #025982 0%, #01425e 50%, #012e42 100%);
    color: white;
    padding: 1.75rem;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.side-content-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
}

.login-side-content:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath fill='%23ffffff' fill-opacity='0.05' d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z'%3E%3C/path%3E%3C/svg%3E");
    opacity: 0.08;
}

/* Subtle animated gradient overlay on side panel */
.login-side-content::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: subtleGlow 15s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes subtleGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(5%, 5%); }
}

.login-side-content h2 {
    font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    color: white;
    position: relative;
    letter-spacing: -0.02em;
}

.login-side-content h2:after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 4rem;
    height: 0.2rem;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    border-radius: 1rem;
}

/* Features */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.08);
    padding: 1rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-smooth);
}

.feature-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.15);
}

.feature-icon {
    background: rgba(255, 255, 255, 0.15);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    font-size: 1.4rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
}

.feature-item:hover .feature-icon {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.feature-text h3 {
    font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    font-size: 1.1rem;
    margin: 0 0 0.35rem;
    color: white;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.feature-text p {
    font-size: 0.9rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}

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

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

/* Enhanced fixes for autofill and password fields */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--bg-white) inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    caret-color: var(--text-primary) !important;
    transition: background-color 5000s ease-in-out 0s;
    background-color: var(--bg-white) !important;
    border-color: transparent !important;
    border-radius: var(--border-radius) !important;
}

/* Override any Tailwind styles that might be affecting our inputs */
.form-control,
input[type="email"],
input[type="password"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-color: transparent !important;
    border: none !important;
    width: 100% !important;
    height: 100% !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    font-size: 0.9rem !important;
    padding: 0.75rem 1rem 0.75rem 2.75rem !important;
    color: var(--text-primary) !important;
    z-index: 1 !important;
    position: relative !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Ensure proper password field styling */
input[type="password"] {
    font-family: Verdana, sans-serif !important;
    letter-spacing: 0.1em !important;
    padding-right: 2.5rem !important;
    background-color: transparent !important;
    color: var(--text-primary) !important;
}

/* Specific fix for password toggle button */
.password-toggle {
    position: absolute !important;
    right: 0.75rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    color: var(--text-light) !important;
    cursor: pointer !important;
    z-index: 3 !important;
    padding: 0.5rem !important;
    margin: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 2rem !important;
    height: 2rem !important;
    border-radius: 50% !important;
    transition: var(--transition-smooth) !important;
}

.password-toggle:hover {
    color: var(--primary-color) !important;
    background-color: rgba(2, 89, 130, 0.06) !important;
}

/* Fix input group positioning */
.input-group {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: var(--border-radius) !important;
    background-color: var(--bg-light) !important;
    transition: var(--transition-smooth) !important;
    min-height: 3rem !important;
    padding: 0 !important;
    width: 100% !important;
    overflow: visible !important;
}

.input-group:focus-within {
    border-color: var(--primary-color) !important;
    background-color: var(--bg-white) !important;
    box-shadow: 0 0 0 4px rgba(2, 89, 130, 0.08) !important;
}

/* Social Login Section */
.social-login-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    width: 100%;
}

/* Google Login Button - Modernized */
.social-btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    color: #3c4043;
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    padding: 0.6rem 1.1rem;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    min-width: 180px;
    position: relative;
    overflow: hidden;
}

.social-btn-google:hover {
    background-color: #f8fafc;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

.social-btn-google:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.social-btn-google i {
    font-size: 1rem;
    margin-right: 0.6rem;
    color: #4285F4;
}

.social-btn-google::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(66, 133, 244, 0.06),
        transparent
    );
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Enhanced Responsive Styles */
@media (max-width: 1440px) {
    .login-wrapper {
        max-width: 780px;
    }
}

@media (max-width: 1200px) {
    .login-wrapper {
        max-width: 750px;
    }

    .login-form-container,
    .login-side-content {
        padding: 1.5rem;
    }
}

@media (max-width: 992px) {
    .login-wrapper {
        max-width: 680px;
        min-height: 450px;
    }

    .feature-list {
        gap: 1rem;
    }

    .feature-item {
        padding: 0.9rem;
    }

    .feature-icon {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 768px) {
    .login-section,
    .login-container {
        padding: 1rem;
    }

    .login-wrapper {
        flex-direction: column;
        max-width: 480px;
        min-height: auto;
    }

    .login-form-container,
    .login-side-content {
        width: 100%;
        padding: 1.5rem;
    }

    .login-form-container {
        order: 1;
    }

    .login-side-content {
        order: 2;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .login-side-content h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .feature-list {
        gap: 0.75rem;
    }

    .feature-item {
        padding: 0.85rem;
    }
}

@media (max-width: 576px) {
    .login-section,
    .login-container {
        padding: 0.75rem;
    }

    .login-wrapper {
        max-width: 100%;
        border-radius: var(--border-radius);
    }

    .login-form-container,
    .login-side-content {
        padding: 1.25rem 1rem;
    }

    .login-side-content {
        border-radius: 0 0 var(--border-radius) var(--border-radius);
    }

    /* Adjust feature items for better small screen display */
    .feature-item {
        padding: 0.75rem;
        align-items: center;
    }

    .feature-icon {
        width: 38px;
        height: 38px;
        margin-right: 0.75rem;
        font-size: 1rem;
    }

    .feature-text h3 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    .feature-text p {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    /* Add extra spacing between form and features */
    .login-form-container {
        border-bottom: none;
        border-radius: var(--border-radius) var(--border-radius) 0 0;
    }
}

/* Very small screens */
@media (max-width: 375px) {
    .login-section,
    .login-container {
        padding: 0.5rem;
    }

    .login-form-container,
    .login-side-content {
        padding: 1rem 0.75rem;
    }

    .brand-logo {
        width: 50px;
        height: 50px;
        margin-bottom: 0.75rem;
    }

    .login-title {
        font-size: 1.3rem;
    }

    .welcome-text h2 {
        font-size: 1.1rem;
    }

    .welcome-text p {
        font-size: 0.8rem;
    }

    /* Make form more compact */
    .form-control {
        padding: 0.6rem 1rem 0.6rem 2.25rem;
        font-size: 0.85rem;
    }

    .btn-login {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }

    /* Make social login more compact */
    .social-btn-google {
        min-width: 160px;
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }

    /* Ensure features remain readable */
    .feature-list {
        gap: 0.6rem;
    }
}

/* Fix for very small height screens */
@media (max-height: 700px) {
    .login-wrapper {
        min-height: auto;
    }

    .brand-section {
        margin-bottom: 0.75rem;
    }

    .welcome-text {
        margin-bottom: 1rem;
    }

    .form-group {
        margin-bottom: 0.85rem;
    }

    .login-side-content h2 {
        margin-bottom: 1.25rem;
    }

    .feature-list {
        gap: 0.7rem;
    }
}

/* Fix for very large screens to maintain proportions */
@media (min-width: 1600px) {
    .login-wrapper {
        max-width: 820px;
        min-height: 500px;
    }

    .login-section,
    .login-container {
        padding: 2rem;
    }

    .shape-1 {
        width: 450px;
        height: 450px;
    }

    .shape-2 {
        width: 550px;
        height: 550px;
    }

    .shape-3 {
        width: 250px;
        height: 250px;
    }
}
