@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(to right, #00c0e6, #007bf4);
    min-height: 100vh;
}

.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: fadeIn 1s ease-in-out;
}

.login-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-right {
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    min-height: 500px;
}

.login-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    max-height: 600px;
}

h1 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 15px;
}

p {
    color: #666;
    margin-bottom: 30px;
}

form input[type="text"],
form input[type="password"] {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

form input:focus {
    outline: none;
    border-color: #007bf4;
}

.password-group {
    position: relative;
    margin-bottom: 25px;
}

.toggle-btn {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #777;
    font-size: 1.1rem;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #007bf4, #00c0e6);
    color: white;
    font-weight: 600;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.register-msg {
    text-align: center;
    margin: 20px 0;
    font-size: 14px;
}

.register-msg a {
    color: #007bf4;
    text-decoration: none;
    font-weight: 600;
}

.register-msg a:hover {
    text-decoration: underline;
}

.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 14px;
    border: 1px solid transparent;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .login-container {
        grid-template-columns: 1fr;
        padding: 25px;
        gap: 30px;
    }

    .login-right {
        order: -1;
        min-height: 300px;
        height: 300px;
    }

    .login-image {
        object-fit: cover;
        max-height: 100%;
    }

    h1 {
        font-size: 2rem;
    }

    .login-left {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 20px;
        border-radius: 15px;
    }
    
    .login-right {
        min-height: 250px;
        height: 250px;
    }
}