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

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: rgb(244, 249, 242);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.main-container {
    display: flex;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 1000px;
    min-height: 600px;
}

/* Left Section - Logo and Quote */
.left-section {
    flex: 1;
    background: linear-gradient(135deg, #bffec0 0%, #dff3e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    color: rgb(0, 0, 0);
    position: relative;
}

.left-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="25" cy="25" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="50" cy="10" r="1" fill="rgba(255,255,255,0.06)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.logo-container {
    text-align: center;
    z-index: 1;
    position: relative;
}

.logo {
    width: 400px;
    height: auto;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.logo:hover {
    transform: scale(1.05);
}

.quote h2 {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quote p {
    font-size: 1.1em;
    font-style: italic;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto;
}

/* Right Section - Login Form */
.right-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    background-color: #fff;
}

.login-form {
    width: 100%;
    max-width: 400px;
}

.login-form h2 {
    text-align: center;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
    font-size: 4em;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.2em;
    color: #444;
    font-weight: 500;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1.2em;
    background: #fafafa;
    transition: all 0.3s ease;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 54px;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 0;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.toggle-password svg {
    width: 20px;
    height: 20px;
    fill: #6b6b6b;
    transition: fill 0.2s ease;
}

.toggle-password:hover,
.toggle-password:focus-visible {
    background: transparent;
}

.toggle-password:hover svg,
.toggle-password:focus-visible svg {
    fill: #388e3c;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #4CAF50;
    outline: none;
    background-color: #f6fff6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
}

.forgot-link {
    text-align: left;
    margin-bottom: 25px;
}

.forgot-password {
    font-size: 0.95em;
    color: #4CAF50;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
    color: #45a049;
}

button {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

button:hover {
    background: linear-gradient(135deg, #45a049 0%, #388e3c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

button:active {
    transform: translateY(0);
}

.signup-link {
    text-align: center;
    font-size: 0.95em;
    color: #666;
}

.sign-up {
    color: #4CAF50;
    text-decoration: none;
    margin-left: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sign-up:hover {
    text-decoration: underline;
    color: #45a049;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        max-width: 500px;
        min-height: auto;
    }
    
    .left-section {
        padding: 40px 30px;
        min-height: 250px;
    }
    
    .logo {
        width: 150px;
        margin-bottom: 20px;
    }
    
    .quote h2 {
        font-size: 1.8em;
        margin-bottom: 10px;
    }
    
    .quote p {
        font-size: 1em;
        max-width: 250px;
    }
    
    .right-section {
        padding: 40px 30px;
    }
    
    .login-form h2 {
        font-size: 1.8em;
        margin-bottom: 25px;
    }
    
    input[type="text"],
    input[type="password"] {
        padding: 12px;
    }
    
    button {
        padding: 12px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .main-container {
        border-radius: 15px;
    }
    
    .left-section {
        padding: 30px 20px;
        min-height: 200px;
    }
    
    .logo {
        width: 120px;
        margin-bottom: 15px;
    }
    
    .quote h2 {
        font-size: 1.5em;
        margin-bottom: 8px;
    }
    
    .quote p {
        font-size: 0.9em;
        max-width: 200px;
    }
    
    .right-section {
        padding: 30px 20px;
    }
    
    .login-form h2 {
        font-size: 1.6em;
        margin-bottom: 20px;
    }
    
    .input-group {
        margin-bottom: 20px;
    }
    
    input[type="text"],
    input[type="password"] {
        padding: 10px;
        font-size: 0.95em;
    }
    
    button {
        padding: 10px;
        font-size: 0.95em;
        margin-bottom: 20px;
    }
    
    .forgot-link,
    .signup-link {
        margin-bottom: 15px;
    }
}

@media (max-width: 320px) {
    .left-section {
        padding: 20px 15px;
        min-height: 180px;
    }
    
    .logo {
        width: 100px;
    }
    
    .quote h2 {
        font-size: 1.3em;
    }
    
    .quote p {
        font-size: 0.85em;
    }
    
    .right-section {
        padding: 20px 15px;
    }
    
    .login-form h2 {
        font-size: 1.4em;
    }
}

/* Animation for smooth transitions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-form {
    animation: fadeInUp 0.6s ease-out;
}

.logo-container {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* Loading state for button */
button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

button:disabled:hover {
    background: #ccc;
    transform: none;
    box-shadow: none;
}
