/* ================================================================
   VIP Customer Management System - Login Page Dark Theme
   Login-Specific Styles
   ================================================================ */

/* ================================================================
   Login Container
   ================================================================ */

.login-container {
    max-width: 650px;
    width: 100%;
    padding: 20px;
    position: relative;
    z-index: 10;
    animation: fadeIn 0.6s ease-out;
}

/* ================================================================
   Logo Section
   ================================================================ */

.logo {
    text-align: center;
    margin-bottom: 15px;
}

.logo img {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(65, 105, 225, 0.5));
}

/* ================================================================
   Card / Login Box
   ================================================================ */

.card {
    background: rgba(10, 10, 30, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(65, 105, 225, 0.4), 0 0 80px rgba(65, 105, 225, 0.2);
    border: 2px solid rgba(65, 105, 225, 0.3);
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, rgba(65, 105, 225, 0.3), rgba(30, 58, 138, 0.3));
    color: white;
    text-align: center;
    border-radius: 20px 20px 0 0 !important;
    padding: 25px 20px;
    border-bottom: 1px solid rgba(65, 105, 225, 0.3);
}

.card-header h4 {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 0 20px rgba(65, 105, 225, 0.8);
}

.card-header .my-0 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.card-header p {
    color: #8b9dc3;
    font-size: 13px;
    margin: 0;
    font-weight: 300;
    opacity: 0.9;
}

.card-header .mb-0 {
    margin-bottom: 0 !important;
}

.card-body {
    padding: 40px 35px;
}

/* ================================================================
   Form Elements
   ================================================================ */

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    color: #fff;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

.input-group {
    display: flex;
    width: 100%;
}

.input-group-prepend,
.input-group-append {
    display: flex;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(65, 105, 225, 0.3);
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: #8b9dc3;
    font-size: 14px;
}

.input-group-append .input-group-text {
    border-left: none;
    border-right: 1.5px solid rgba(65, 105, 225, 0.3);
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.input-group-append .input-group-text:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.input-group .form-control {
    border-radius: 0 10px 10px 0;
    border-left: none;
}

.input-group-prepend + .form-control {
    border-radius: 0 10px 10px 0;
    border-left: none;
}

.input-group .form-control:only-child {
    border-radius: 10px;
    border: 1.5px solid rgba(65, 105, 225, 0.3);
}

input[type="text"],
input[type="password"],
.form-control {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(65, 105, 225, 0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

input[type="text"]:focus,
input[type="password"]:focus,
.form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(65, 105, 225, 0.7);
    box-shadow: 0 0 15px rgba(65, 105, 225, 0.3);
}

/* ================================================================
   Buttons
   ================================================================ */

.btn {
    padding: 14px;
    background: linear-gradient(135deg, #4169E1 0%, #1e3a8a 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(65, 105, 225, 0.4);
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(65, 105, 225, 0.6);
    color: #fff;
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, #4169E1 0%, #1e3a8a 100%);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn i {
    margin-right: 8px;
}

.mr-2 {
    margin-right: 0.5rem !important;
}

/* ================================================================
   Form Utilities
   ================================================================ */

.mt-4 {
    margin-top: 1.5rem !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.my-0 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* ================================================================
   Toggle Password Icon
   ================================================================ */

.toggle-password {
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-password:hover {
    color: #fff;
}

/* ================================================================
   Alert Messages
   ================================================================ */

.alert {
    padding: 12px 18px;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: none;
    animation: fadeIn 0.4s ease-out;
}

.alert-success {
    background: rgba(46, 204, 113, 0.15);
    border: 1.5px solid rgba(46, 204, 113, 0.4);
    color: #2ecc71;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1.5px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.alert-warning {
    background: rgba(243, 156, 18, 0.15);
    border: 1.5px solid rgba(243, 156, 18, 0.4);
    color: #f39c12;
}

.alert-info {
    background: rgba(52, 152, 219, 0.15);
    border: 1.5px solid rgba(52, 152, 219, 0.4);
    color: #3498db;
}

/* ================================================================
   Icon Styling
   ================================================================ */

.fas,
.far,
.fab {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

/* ================================================================
   Responsive Design
   ================================================================ */

@media (max-width: 768px) {
    .login-container {
        max-width: 100%;
        padding: 15px;
    }

    .card-header h4 {
        font-size: 20px;
    }

    .card-body {
        padding: 30px 25px;
    }

    .logo img {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .card-header {
        padding: 20px 15px;
    }

    .card-body {
        padding: 25px 20px;
    }

    .btn {
        padding: 12px;
        font-size: 14px;
    }
}

/* ================================================================
   Additional Utilities
   ================================================================ */

.img-fluid {
    max-width: 100%;
    height: auto;
}

.text-center {
    text-align: center !important;
}

/* ================================================================
   Background Override (if needed on login page)
   ================================================================ */

body.login-page {
    background: #000000;
    background: linear-gradient(135deg, #000000 0%, #0a0a1a 50%, #000814 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

body.login-page::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(65, 105, 225, 0.15) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
    pointer-events: none;
}
