body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 400px;
    padding: 40px;
    animation: slideUp 0.6s ease-out;
}

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

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header .brand {
    color: #667eea;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-header .brand i {
    font-size: 32px;
}

.login-header .subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 0;
}

.form-floating {
    margin-bottom: 20px;
}

.form-floating > .form-control {
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px 16px 8px 16px;
    height: auto;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.form-floating > .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    background: white;
}

.form-floating > label {
    color: #666;
    padding: 16px 16px 8px 16px;
}

.btn-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    color: white;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    color: white;
}

.btn-login:active {
    transform: translateY(0);
}

.form-check {
    margin: 20px 0;
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.info-box {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.info-box .info-icon {
    color: #667eea;
    font-size: 24px;
    margin-bottom: 10px;
}

.info-box h6 {
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
}

.info-box p {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 0;
}

.alert {
    border-radius: 12px;
    border: none;
    margin-bottom: 20px;
}

.text-danger {
    font-size: 12px;
    margin-top: 5px;
}

/* Tabs */
.login-tabs {
    display: flex;
    margin-bottom: 30px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    padding: 4px;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    color: #666;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.7);
    color: #333;
}

.tab-btn.active {
    background: white;
    color: #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-btn i {
    font-size: 16px;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.tab-content.active {
    display: block;
}

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

/* Register Button */
.btn-register {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    color: white;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.3);
    color: white;
}

.btn-register:active {
    transform: translateY(0);
}

/* Textarea floating label fix */
.form-floating > textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

/* Alert improvements */
.alert {
    border-radius: 12px;
    border: none;
    margin-bottom: 20px;
    padding: 12px 16px;
    position: relative;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: #155724;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #721c24;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.alert-info {
    background: rgba(13, 202, 240, 0.1);
    color: #055160;
    border: 1px solid rgba(13, 202, 240, 0.2);
}

.btn-close {
    position: absolute;
    top: 8px;
    right: 12px;
    padding: 0;
    background: none;
    border: none;
    font-size: 18px;
    color: inherit;
    opacity: 0.5;
    cursor: pointer;
}

.btn-close:hover {
    opacity: 0.8;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

.alert li {
    margin-bottom: 4px;
}

/* Responsive */
@media (max-width: 576px) {
    .login-card {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .login-header .brand {
        font-size: 24px;
    }
    
    .tab-btn {
        font-size: 13px;
        padding: 10px 12px;
    }
    
    .tab-btn i {
        font-size: 14px;
    }
}