/* ==========================================
   MODERN LOGIN PAGE - PREMIUM DESIGN
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ==========================================
   RESET & GLOBAL STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* BDM Video Dark Theme */
    background: #0f171e;
    min-height: 100vh;
    position: relative;
    color: #e1e6eb;
}

/* ==========================================
   BACKGROUND ANIMATIONS
   ========================================== */
.auth-bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at top right, rgba(0, 168, 225, 0.15), transparent 40%),
        radial-gradient(circle at bottom left, rgba(0, 168, 225, 0.1), transparent 40%);
    z-index: 0;
}

/* ==========================================
   AUTH CARD - CINEMATIC
   ========================================== */
.auth-card {
    background: #1a242f;
    /* BDM dark background */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

/* ==========================================
   AUTH HEADER
   ========================================== */
.auth-header {
    background: transparent;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-logo {
    position: relative;
    z-index: 2;
}

.logo-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 168, 225, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 1px solid rgba(0, 168, 225, 0.3);
}

.logo-text {
    font-size: 2.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.auth-header h1 {
    color: #fff;
}

.auth-header p {
    color: #8197a4 !important;
}

/* ==========================================
   FORM STYLES
   ========================================== */
.auth-body {
    background: transparent;
}

.form-floating {
    position: relative;
}

.form-floating .form-control {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    transition: all 0.3s ease;
}

.form-floating .form-control:focus {
    border-color: #00a8e1 !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 168, 225, 0.25) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.form-floating label {
    color: #8197a4;
    font-weight: 500;
}

.form-floating .form-control:focus~label,
.form-floating .form-control:not(:placeholder-shown)~label {
    color: #00a8e1;
}

.form-floating .form-control::placeholder {
    color: transparent !important;
}

/* Password Toggle Icon */
.btn-outline-secondary {
    color: #8197a4 !important;
}

.btn-outline-secondary:hover {
    color: #fff !important;
}

/* Remember Me Checkbox */
.form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.form-check-input:checked {
    background-color: #00a8e1;
    border-color: #00a8e1;
}

/* Auth Links */
a {
    color: #00a8e1;
}

a:hover {
    color: #0082af;
}

/* ==========================================
   BUTTON STYLES
   ========================================== */
.btn-primary {
    background-color: #00a8e1;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 168, 225, 0.3);
    transition: all 0.3s ease;
    font-weight: 700;
    color: #0f171e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background-color: #0082af;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 168, 225, 0.4);
    color: #0f171e;
}

.btn-primary:active {
    transform: translateY(0);
}

/* ==========================================
   SOCIAL LOGIN
   ========================================== */
.social-divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.social-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.divider-text {
    background: #1a242f;
    padding: 0 1rem;
    color: #8197a4;
    font-size: 0.875rem;
    font-weight: 500;
    position: relative;
    display: inline-block;
}

.social-login-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    text-decoration: none;
    color: #e1e6eb;
    font-weight: 500;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.social-btn:hover {
    border-color: #00a8e1;
    color: #fff;
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
}

.social-google img {
    width: 18px;
    height: 18px;
}

.social-facebook i {
    color: #1877f2;
    font-size: 18px;
}

/* ==========================================
   AUTH FOOTER
   ========================================== */
.auth-footer {
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.auth-footer p {
    color: #8197a4;
}

.auth-footer a {
    color: #00a8e1;
    transition: all 0.3s ease;
}

.auth-footer a:hover {
    color: #0082af;
    text-decoration: underline !important;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .auth-card {
        margin: 0;
    }

    .auth-header {
        padding: 2rem 1.5rem !important;
    }

    .auth-body {
        padding: 2rem 1.5rem !important;
    }

    .social-login-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   LOADING STATES
   ========================================== */
.btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}