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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.header h2 {
    font-size: 2.5rem;
    margin: 0;
    position: relative;
    z-index: 1;
}


.login-body {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
}

.login-promo {
    padding: 40px; text-align: center; color: #1565c0;
    background-color: #e3f2fd; height: 100%;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
}

.promo-icon {
    font-size: 4.5rem;
    margin-bottom: 20px;
}

.login-promo h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.login-promo p {
    font-size: 1rem;
    color: #1976d2;
}

.login-form-container {
    padding: 40px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute; left: 15px; top: 50%;
    transform: translateY(-50%); color: #aaa;
}

.form-control {
    width: 100%; padding: 12px 15px 12px 45px;
    border: 1px solid #ccc; border-radius: 8px;
    font-size: 1rem; transition: all 0.3s;
}

.form-control:focus {
    outline: none; border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.2);
}

.btn-login {
    width: 100%;
    color: white; padding: 12px 24px; border: none;
    border-radius: 8px; font-weight: 500; font-size: 1.1rem;
    cursor: pointer; transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
}

.btn-login.login {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}
.btn-login.login:hover {
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.4);
}

.btn-login.register {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}
.btn-login.register:hover {
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.alert {
    text-align: center; padding: 12px; border-radius: 8px;
    margin-bottom: 20px; border: 1px solid;
}
.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}
.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.register-link, .login-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.register-link a, .login-link a {
    color: #1976d2;
    font-weight: 500;
    text-decoration: none;
}

.register-link a:hover, .login-link a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .header h2 {
        font-size: 2rem;
    }
    .login-body {
        grid-template-columns: 1fr;
    }
    .login-promo {
        display: none;
    }
    .login-form-container {
        padding: 30px;
    }
}