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

.card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 16px; /* Prevents zoom on mobile */
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
    transform: translateY(-1px);
}

.input-group-text {
    border: 2px solid #e9ecef;
    border-radius: 8px 0 0 8px;
    padding: 12px 15px;
    background: #f8f9fa;
}

.input-group .form-control {
    border-radius: 0;
}

.input-group .form-control:last-child {
    border-radius: 0 8px 8px 0;
}

.btn-primary {
    background: linear-gradient(45deg, #0d6efd, #6f42c1);
    border: none;
    padding: 12px 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #0b5ed7, #5a379c);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.btn-outline-secondary {
    border-color: #e9ecef;
    color: #6c757d;
}

.btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    color: #495057;
}

.text-primary {
    background: linear-gradient(45deg, #0d6efd, #6f42c1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-label {
    color: #495057;
    margin-bottom: 8px;
}

.alert {
    border-radius: 10px;
    border: none;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(45deg, #d1edff, #c8f7c5);
    color: #0f5132;
}

.alert-danger {
    background: linear-gradient(45deg, #f8d7da, #ffc1cc);
    color: #842029;
}

/* Mobile optimizations */
@media (max-width: 576px) {
    .card {
        margin: 20px;
        border-radius: 20px !important;
    }
    
    .card-body {
        padding: 2rem !important;
    }
    
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px 16px;
    }
    
    .input-group-text {
        padding: 14px 16px;
    }
    
    .btn-lg {
        padding: 14px 20px;
        font-size: 1.1rem;
    }
}

/* Animation for form elements */
.form-control, .btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.btn:disabled {
    animation: pulse 1.5s infinite;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #0d6efd, #6f42c1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #0b5ed7, #5a379c);
}

/* Touch-friendly button sizing */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .form-control {
        min-height: 44px;
    }
}
