:root {
    --primary-blue: #102770;
    --accent-yellow: #FFD700;
    --accent-orange: #FF8C00;
    --text-white: #ffffff;
    --card-bg: rgba(255, 255, 255, 1);
    --input-bg: #f0f7ff;
    --button-blue: #1a3c8e;
    --button-hover: #142d6b;
    --transition-speed: 0.3s;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-blue);
    color: var(--text-white);
    overflow: hidden;
    height: 100vh;
}

.main-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    background: url('assets/bg.png') no-repeat center center/cover;
    position: relative;
}

/* Add a dark overlay to ensure readability if the background is too bright */
.main-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(16, 39, 112, 0.8) 0%, rgba(16, 39, 112, 0.2) 100%);
    z-index: 1;
}

.login-section, .welcome-section {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
}

/* Left Section Styles */
.login-section {
    align-items: center;
    justify-content: space-between;
    padding-top: 8rem;
    padding-bottom: 4rem;
}

.login-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    color: #333;
    animation: slideInLeft 0.8s ease-out;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #333;
    letter-spacing: 0.5px;
}

.input-group {
    display: flex;
    align-items: center;
    background: var(--input-bg);
    border: 1px solid #dce9f7;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    margin-bottom: 1.5rem;
    transition: border-color var(--transition-speed);
}

.input-group:focus-within {
    border-color: var(--button-blue);
    box-shadow: 0 0 0 3px rgba(26, 60, 142, 0.1);
}

.country-code {
    font-weight: 600;
    color: #666;
    margin-right: 0.8rem;
    border-right: 1px solid #ccc;
    padding-right: 0.8rem;
}

input[type="tel"] {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 1rem;
    color: #333;
}

.btn-continue {
    background: var(--button-blue);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 1rem;
    width: 100%;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-speed), transform 0.2s;
}

.btn-continue:hover {
    background: var(--button-hover);
    transform: translateY(-2px);
}

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

.terms-text {
    font-size: 0.75rem;
    color: #777;
    margin-top: 1.5rem;
    line-height: 1.4;
}

.terms-text a {
    color: #555;
    text-decoration: underline;
}

.side-info {
    text-align: center;
    margin-top: auto;
    animation: fadeIn 1.2s ease-out;
}

.side-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.side-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Right Section Styles */
.welcome-section {
    align-items: center;
    text-align: center;
}

.welcome-content {
    animation: fadeInRight 1s ease-out;
}

.welcome-tagline {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.main-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.sub-heading {
    font-size: 3rem;
    font-weight: 800;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-heading { font-size: 3.5rem; }
    .sub-heading { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        overflow-y: auto;
    }
    
    .login-section, .welcome-section {
        padding: 2rem;
        flex: none;
        height: auto;
    }
    
    .login-section { order: 2; padding-bottom: 4rem; }
    .welcome-section { order: 1; padding-top: 4rem; }
    
    .main-heading { font-size: 2.8rem; }
    .sub-heading { font-size: 1.8rem; }
    .welcome-tagline { font-size: 1.1rem; }
    
    .login-card { margin: 2rem auto; }
}
