* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1b1a1a 0%, #1b1a1a 100%);    
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-box,
.register-box {
    background: white;
    border-radius: 10px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.logo-section h1 {
    color: #667eea;
    font-size: 32px;
    margin-bottom: 10px;
}

.logo-section p {
    color: #666;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    width: 100%;
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: #667eea;
}

.eye-icon,
.eye-off-icon {
    width: 20px;
    height: 20px;
}

.toggle-password.active .eye-icon {
    display: none;
}

.toggle-password .eye-off-icon {
    display: none;
}

.toggle-password.active .eye-off-icon {
    display: block;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1b1a1a;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #3d3d3d 0%, #3d3d3d 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
    padding-bottom: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    width: 100%;
    padding: 12px;
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #e0e0e0;
    border-color: #e0e0e0;
}

.divider {
    text-align: center;
    color: #999;
    margin: 20px 0;
    font-size: 14px;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #ddd;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.error-message {
    display: none;
    color: #d32f2f;
    background: #ffebee;
    padding: 12px;
    border-radius: 5px;
    margin-top: 15px;
    font-size: 14px;
    border-left: 4px solid #d32f2f;
}

.success-message {
    display: none;
    color: #388e3c;
    background: #e8f5e9;
    padding: 12px;
    border-radius: 5px;
    margin-top: 15px;
    font-size: 14px;
    border-left: 4px solid #388e3c;
}

@media (max-width: 480px) {
    .login-box,
    .register-box {
        padding: 30px 20px;
    }

    .logo-section h1 {
        font-size: 28px;
    }
}
