
/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Login Page Layout */
.login-container {
    display: flex;
    flex: 1;
    min-height: 100vh;
}
 
/* Left Section (Image & Text) */
.left-section {
    flex: 1;
    background: url('https://images.unsplash.com/photo-1513530534585-c7b1394c6d51') no-repeat center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.text-container {
    position: relative;
    color: white;
    max-width: 80%;
    padding: 20px;
    z-index: 1;
}

.text-container h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: bold;
    margin-bottom: 15px;
}

.text-container p {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: white;
}

/* Right Section (Login Form) */
.right-section {
    flex: 1;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.form-container {
    width: 100%;
    max-width: 400px;
    text-align: center;
    padding: 20px;
}

.icon i {
    font-size: 2.5rem;
    color: #1e1e1e;
    margin-bottom: 15px;
}

h2 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 10px;
}

p {
    color: #555;
    margin-bottom: 15px;
}

/* Input Fields */
.input-group {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    padding: 12px 15px;
    margin: 15px 0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.input-group:focus-within {
    box-shadow: 0 0 0 2px rgba(76, 132, 255, 0.3);
}

.input-group i {
    margin-right: 12px;
    color: #777;
    font-size: 1.1rem;
}

.input-group input {
    border: none;
    background: none;
    width: 100%;
    outline: none;
    font-size: 1rem;
    color: #333;
}

/* Checkbox */
.options {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 0.9rem;
    color: #555;
    margin: 15px 0;
}

.options input[type="checkbox"] {
    margin-right: 8px;
}

/* Button */
.btn {
    width: 100%;
    padding: 14px;
    background: #2e2e2e;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #1e1e1e;
}

/* Sign Up Link */
.signup-text {
    margin-top: 20px;
    font-size: 0.95rem;
}

.signup-text a {
    color: #4c84ff;
    text-decoration: none;
    font-weight: 600;
}

.signup-text a:hover {
    text-decoration: underline;
}

.error-message {
    color: #d9534f;
    background: #f8d7da;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 20px;
    border-left: 4px solid #d9534f;
}

/* Enhanced Responsive Design */
@media (max-width: 992px) {
    .right-section {
        flex: 1.2;
    }
    
    .left-section {
        flex: 0.8;
    }
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        min-height: unset;
    }

    .left-section {
        min-height: 35vh;
    }

    .right-section {
        min-height: 65vh;
    }
    
    .text-container h1 {
        font-size: clamp(1.3rem, 5vw, 2rem);
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 15px 10px;
    }
    
    .input-group {
        padding: 10px 12px;
    }
    
    .left-section {
        min-height: 30vh;
    }
    
    .text-container {
        max-width: 95%;
        padding: 10px;
    }
    
    .icon i {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

/* For very small screens */
@media (max-width: 320px) {
    .left-section {
        min-height: 25vh;
    }
    
    .text-container h1 {
        font-size: 1.2rem;
    }
    
    .text-container p {
        font-size: 0.8rem;
    }
}

/* For tall mobile devices in portrait */
@media (max-height: 700px) and (max-width: 768px) {
    .login-container {
        min-height: unset;
    }
    
    .left-section {
        min-height: 180px;
    }
}
