/* -------------------------------------------------------------------
   Sleek Login Page CSS - Modern & Responsive Design
   ------------------------------------------------------------------- */

/* Import Google Fonts for better typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700&display=swap');

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
}

/* Auth Section - Main Container */
#auth {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem !important;
    position: relative;
    overflow: hidden;
}

/* Animated background circles for extra flair */
#auth::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -100px;
    left: -100px;
    animation: float 20s infinite ease-in-out;
}

#auth::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    bottom: -150px;
    right: -150px;
    animation: float 25s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(30px, 20px);
    }
}

/* Login Card */
#auth .card {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-radius: 2rem !important;
    border: none !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    padding: 2rem !important;
    max-width: 450px !important;
    width: 100% !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#auth .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3) !important;
}

/* Card Header / Title */
#auth .card-header {
    background: transparent !important;
    border-bottom: none !important;
    text-align: center;
    padding: 0 0 1.5rem 0 !important;
}

#auth .card-header h3,
#auth .card-header h4 {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

#auth .card-header p {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Card Body - Form Fields */
#auth .card-body {
    padding: 0 !important;
}

/* Form Groups */
#auth .form-group {
    margin-bottom: 1.5rem;
}

/* Labels */
#auth .form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Input Fields */
#auth .form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    background: #ffffff;
    transition: all 0.3s ease;
    outline: none;
    color: #1f2937;
}

#auth .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#auth .form-control::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* Login Button */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    padding: 0.875rem 1.5rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    font-family: 'Inter', sans-serif !important;
    border-radius: 1rem !important;
    width: 100%;
    color: #ffffff !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46a0 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

.btn-primary:active {
    transform: translateY(0);
}

/* Optional: Remember me & Forgot password row */
#auth .d-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0 1.5rem 0;
}

#auth .form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#auth .form-check-input {
    width: 1rem;
    height: 1rem;
    cursor: pointer;
    accent-color: #667eea;
}

#auth .form-check-label {
    font-size: 0.875rem;
    color: #4b5563;
    cursor: pointer;
}

#auth a {
    color: #667eea;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

#auth a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Sign up link section */
#auth .text-center {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

#auth .text-center p {
    font-size: 0.875rem;
    color: #6b7280;
}

#auth .text-center a {
    font-weight: 600;
}

/* Error / Alert Messages */
#auth .alert {
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    border: none;
}

#auth .alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

#auth .alert-success {
    background: #dcfce7;
    color: #166534;
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

/* Tablets and smaller desktops */
@media (max-width: 768px) {
    #auth {
        padding: 1rem !important;
    }
    
    #auth .card {
        padding: 1.5rem !important;
        border-radius: 1.5rem !important;
    }
    
    #auth .card-header h3,
    #auth .card-header h4 {
        font-size: 1.5rem;
    }
    
    .btn-primary {
        padding: 0.75rem 1.25rem !important;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    #auth {
        padding: 0.75rem !important;
        align-items: flex-start;
        padding-top: 2rem !important;
    }
    
    #auth .card {
        padding: 1.25rem !important;
        border-radius: 1.25rem !important;
    }
    
    #auth .card-header h3,
    #auth .card-header h4 {
        font-size: 1.35rem;
    }
    
    #auth .card-header p {
        font-size: 0.8rem;
    }
    
    #auth .form-control {
        padding: 0.75rem 0.875rem;
        font-size: 0.95rem;
    }
    
    .btn-primary {
        padding: 0.7rem 1rem !important;
        font-size: 0.95rem !important;
    }
    
    #auth .d-flex {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    #auth .form-group label {
        font-size: 0.8rem;
    }
    
    #auth .text-center p,
    #auth a {
        font-size: 0.8rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    #auth .card {
        padding: 1rem !important;
    }
    
    #auth .card-header h3,
    #auth .card-header h4 {
        font-size: 1.2rem;
    }
}

/* Touch-friendly improvements for mobile */
@media (hover: none) and (pointer: coarse) {
    .btn-primary {
        padding: 1rem 1.5rem !important;
    }
    
    #auth .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Optional: Loading state for button */
.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Input with icons support (if you add icons later) */
#auth .input-group {
    position: relative;
}

/* Smooth focus ring for accessibility */
#auth .form-control:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}