:root {
    --primary-color: #005F74;
    --primary-hover: #004a5c;
    --primary-light: rgba(0, 95, 116, 0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f8fafc;
    overflow-x: hidden;
    height: 100vh;
}

.container-fluid {
    height: 100vh;
    overflow: hidden;
}

/* Banner Section */
.banner-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #007a94 50%, #0099cc 100%);
    position: relative;
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path d="M0,300 Q250,100 500,300 T1000,300 L1000,1000 L0,1000 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
    transform: rotate(-5deg);
}

/* Abstract Shapes */
.abstract-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 120px;
    height: 120px;
    top: 10%;
    left: 15%;
    animation-delay: 0s;
}

.shape-2 {
    width: 80px;
    height: 80px;
    top: 60%;
    left: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    top: 20%;
    right: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    right: 15%;
    animation-delay: 1s;
}

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

/* Banner Images */
.banner-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.floating-element {
    position: absolute;
    animation: floatSlow 8s ease-in-out infinite;
}

.element-1 {
    top: 15%;
    left: 20%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
}

.element-2 {
    top: 50%;
    right: 25%;
    width: 120px;
    height: 120px;
    animation-delay: 3s;
}

.element-3 {
    bottom: 25%;
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 1.5s;
}

.abstract-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.7; }
    50% { transform: translateY(-15px) scale(1.05); opacity: 1; }
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 90%;
    text-align: center;
    padding: 1rem;
}

.banner-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.banner-text h1 {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.banner-text .lead {
    font-size: clamp(0.9rem, 1.6vw, 1.1rem);
    font-weight: 400;
    opacity: 0.95;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Legal Images */
.legal-images {
    margin: 1.2rem 0;
}

.image-grid {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 2.5vw, 1.8rem);
    flex-wrap: wrap;
}

.legal-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    opacity: 0.9;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.legal-icon:hover {
    opacity: 1;
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
}

.legal-icon svg {
    width: clamp(35px, 5vw, 45px);
    height: clamp(35px, 5vw, 45px);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.legal-icon span {
    font-size: clamp(0.7rem, 1.3vw, 0.8rem);
    font-weight: 500;
}

.feature-list {
    margin-top: 1.2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.8rem, 1.4vw, 0.95rem);
    font-weight: 500;
    margin-bottom: 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

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

.feature-icon {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-right: 0.6rem;
    width: 1.8rem;
    text-align: center;
}

/* Login Section - Enhanced Width and Height */
.col-lg-5 {
    height: 100vh;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.login-container, .signup-container {
    width: 100%;
    max-width: 520px;
    min-width: 450px;
    background: white;
    border-radius: 0;
    padding: clamp(2rem, 4vw, 3rem);
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo {
    max-width: clamp(140px, 35vw, 180px);
    height: auto;
}

h2 {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.text-primary {
    color: var(--primary-color) !important;
}

.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.form-control {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1rem, 2.5vw, 1.25rem);
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fafafa;
    margin-bottom: clamp(1rem, 2.5vw, 1.25rem);
    min-height: 48px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
    background: white;
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: clamp(0.9rem, 2vw, 1rem);
    letter-spacing: 0.025em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    padding: clamp(0.8rem, 2vw, 1rem);
    margin-bottom: clamp(1rem, 2.5vw, 1.25rem);
    min-height: 48px;
}

.btn-primary::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.5s;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 95, 116, 0.25);
}

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

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

.text-muted {
    color: #6b7280 !important;
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
}

a.text-primary {
    transition: all 0.3s ease;
    position: relative;
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
}

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

a.text-primary:hover::after {
    width: 100%;
}

a.text-primary:hover {
    color: var(--primary-hover) !important;
}

/* Modal Styling */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 15px 30px rgba(0, 95, 116, 0.15);
}

.modal-header {
    padding: clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2rem) 0 clamp(1.5rem, 3vw, 2rem);
}

.modal-body {
    padding: 1rem clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2rem);
}

/* Responsive Design */
@media (max-width: 991.98px) {
    body {
        background: var(--primary-color) !important;
    }
    
    .signup-container {
        display: none !important;
    }
    
    .col-lg-5 {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 100vh;
        background: var(--primary-color);
        padding: 1rem;
    }
    
    .login-container {
        background: white;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
        border-radius: 16px;
        padding: clamp(1.5rem, 4vw, 2rem);
        margin: 0.5rem;
        max-width: 400px;
        min-width: 320px;
        width: 100%;
        min-height: auto;
    }
}

/* 150% Zoom Complete Design Fix */
@media (min-resolution: 150dpi) and (min-width: 992px), 
       (min-resolution: 1.5dppx) and (min-width: 992px) {
    
    body {
        height: 100vh;
        overflow: hidden;
    }
    
    .container-fluid {
        height: 100vh;
        max-height: 100vh;
    }
    
    .banner-content {
        max-width: 75%;
        padding: 0.5rem;
        transform: scale(0.9);
    }
    
    .banner-text h1 {
        font-size: clamp(1.2rem, 2.4vw, 1.8rem);
        margin-bottom: 0.5rem;
    }
    
    .banner-text .lead {
        font-size: clamp(0.75rem, 1.2vw, 0.9rem);
        margin-bottom: 0.8rem;
    }
    
    .legal-images {
        margin: 0.8rem 0;
    }
    
    .image-grid {
        gap: 1rem;
    }
    
    .legal-icon {
        padding: 0.5rem;
        transform: scale(0.85);
    }
    
    .feature-list {
        margin-top: 0.8rem;
    }
    
    .feature-item {
        margin-bottom: 0.3rem;
        font-size: clamp(0.7rem, 1.1vw, 0.8rem);
        padding: 0.3rem 0.6rem;
        transform: scale(0.9);
    }
    
    /* Compact login container for complete visibility */
    .col-lg-5 {
        padding: 0.5rem;
        height: 100vh;
        max-height: 100vh;
        overflow: hidden;
    }
    
    .login-container, .signup-container {
        max-width: 380px;
        min-width: 320px;
        padding: 1.2rem;
        min-height: auto;
        max-height: 95vh;
        margin: 0;
        transform: scale(0.95);
        transform-origin: center;
    }
    
    .logo {
        max-width: 110px;
        margin-bottom: 0.8rem;
    }
    
    h2 {
        font-size: 1.4rem;
        margin-bottom: 0.3rem;
    }
    
    .form-label {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }
    
    .form-control {
        padding: 0.6rem 0.8rem;
        margin-bottom: 0.7rem;
        font-size: 0.85rem;
        min-height: 40px;
    }
    
    .btn-primary {
        padding: 0.6rem;
        margin-bottom: 0.7rem;
        font-size: 0.85rem;
        min-height: 40px;
    }
    
    .text-muted, a.text-primary {
        font-size: 0.75rem;
    }
    
    .text-center.mb-5 {
        margin-bottom: 1rem !important;
    }
    
    .mb-4 {
        margin-bottom: 0.8rem !important;
    }
    
    .mb-3 {
        margin-bottom: 0.6rem !important;
    }
    
    .abstract-shapes .shape {
        transform: scale(0.7);
    }
    
    .floating-element {
        transform: scale(0.7);
    }
}

/* Large screens - even more spacious */
@media (min-width: 1400px) {
    .login-container, .signup-container {
        max-width: 580px;
        min-width: 500px;
        padding: 3.5rem;
        min-height: 650px;
    }
    
    .col-lg-5 {
        padding: 3rem 2rem;
    }
}

/* Prevent horizontal scroll */
.row {
    margin: 0;
}

.col-lg-7, .col-lg-5 {
    padding: 0;
}