/**
 * -----------------------------------------------------------------------------
 * Title: Authentication Stylesheet
 * File: assets/css/auth.css
 * Description: Clean, responsive layout for Login & Registration views.
 * -----------------------------------------------------------------------------
 */

/* ==========================================
   1. Base & Global Reset
   ========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* ==========================================
   2. Modal Card Layout
   ========================================== */
.modal-container {
    display: flex;
    width: 900px;
    max-width: 95%;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    min-height: 550px;
}

/* ------------------------------------------
   2.1 Left Branding Panel
   ------------------------------------------ */
.left-panel {
    width: 50%;
    background: #FFC107;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.left-panel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-image: url('../images/login-banner.webp');
    background-size: cover;
    background-position: center;
}

.left-overlay-text {
    position: absolute;
    color: #ffffff;
    text-align: center;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.left-overlay-text h1 {
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
}

.brand-badge {
    background: #000000;
    padding: 5px 10px;
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
    color: #FFC107;
}

/* ------------------------------------------
   2.2 Right Form Panel
   ------------------------------------------ */
.right-panel {
    width: 50%;
    padding: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    color: #999999;
    cursor: pointer;
}

.header-text {
    margin-bottom: 20px;
    font-size: 14px;
    color: #333333;
}

.header-text a {
    color: #000000;
    font-weight: 700;
    text-decoration: none;
}

/* ==========================================
   3. Alerts & Error Notifications
   ========================================== */
.error-banner {
    display: none; /* Visible dynamically via JS */
    background-color: #ffe6e6;
    color: #d32f2f;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    border-left: 4px solid #d32f2f;
    align-items: center;
    animation: shake 0.3s ease-in-out;
}

.error-banner i {
    margin-right: 8px;
    font-size: 16px;
}

@keyframes shake {
    0%   { transform: translateX(0); }
    25%  { transform: translateX(-5px); }
    50%  { transform: translateX(5px); }
    75%  { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

/* ==========================================
   4. Form Controls & Dropdown
   ========================================== */
.input-group {
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    height: 50px;
    border: 1px solid transparent;
    transition: 0.3s;
    position: relative;
}

.input-group:focus-within {
    border-color: #333333;
    background: #ffffff;
}

.flag-icon-small {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
    margin-right: 8px;
}

.prefix {
    color: #333333;
    font-weight: 600;
    margin-right: 10px;
    min-width: 35px;
}

input {
    border: none;
    background: transparent;
    width: 100%;
    height: 100%;
    font-size: 14px;
    outline: none;
    color: #333333;
}

.eye-icon {
    cursor: pointer;
    color: #666666;
}

/* ------------------------------------------
   4.1 Custom Country Dropdown
   ------------------------------------------ */
.custom-dropdown {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.selected-option {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.selected-content {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #333333;
}

.currency-flag {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    border: 1px solid #dddddd;
}

.arrow {
    font-size: 12px;
    color: #666666;
    transition: 0.3s;
}

.custom-dropdown.active .arrow {
    transform: rotate(180deg);
}

.options-list {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 100;
    overflow: hidden;
    padding: 5px 0;
    border: 1px solid #eeeeee;
}

.custom-dropdown.active .options-list {
    display: block;
}

.option-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 14px;
    color: #333333;
}

.option-item:hover {
    background: #f0f7ff;
}

.option-item img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
    border: 1px solid #eeeeee;
}

/* ==========================================
   5. Buttons & Action Links
   ========================================== */
.login-btn {
    width: 100%;
    height: 50px;
    background: #FFC107;
    color: #000000;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.login-btn:hover {
    background: #ffca2c;
}

.forgot-pass-wrap {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
}

.forgot-pass-wrap a {
    color: #666666;
    text-decoration: none;
}

/* ==========================================
   6. Mobile Responsive Adjustments
   ========================================== */
@media (max-width: 768px) {
    body {
        padding: 10px 0;
        align-items: flex-start;
        overflow-y: auto;
    }
    .modal-container {
        width: 95%;
        margin: 10px auto;
        height: auto;
        min-height: 85vh;
        border-radius: 15px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
    .left-panel {
        display: none;
    }
    .right-panel {
        width: 100%;
        padding: 40px 20px;
    }
    .input-group {
        height: 55px;
        margin-bottom: 22px;
    }
    .error-banner {
        margin-bottom: 25px;
        padding: 15px;
    }
    .login-btn {
        height: 55px;
        margin-top: 15px;
        font-size: 18px;
    }
    .forgot-pass-wrap {
        margin-top: 30px;
        margin-bottom: 10px;
    }
}


/* ------------------------------------------
   7. Registration Specific Elements
   ------------------------------------------ */
.form-alert {
    background-color: #fdecea;
    color: #d32f2f;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    border: 1px solid #fab3ae;
}

.form-alert i {
    margin-right: 10px;
    font-size: 16px;
}

.promo-code-btn {
    background: transparent !important;
    padding: 0 !important;
    font-size: 13px;
    color: #555555;
    cursor: pointer;
}

.section-label {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 10px;
    color: #333333;
}

.bonus-card {
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
    border-radius: 8px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
    cursor: pointer;
    margin-bottom: 15px;
    transition: transform 0.2s ease;
}

.bonus-card:hover {
    transform: translateY(-2px);
}

.bonus-content {
    display: flex;
    align-items: center;
}

.bonus-img {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    margin-right: 12px;
    background: #ffffff;
    object-fit: cover;
}

.bonus-text h4 {
    font-size: 13px;
    color: #FFD700;
    font-weight: 700;
}

.bonus-text p {
    font-size: 12px;
    margin: 0;
}

.terms {
    display: flex;
    align-items: flex-start;
    font-size: 12px;
    color: #666666;
    margin-bottom: 20px;
}

.terms input {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    margin-top: 2px;
    accent-color: #00994d;
    cursor: pointer;
}

.reg-btn {
    width: 100%;
    height: 50px;
    background: #e0e0e0;
    color: #999999;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    cursor: not-allowed;
    transition: 0.3s ease;
}

.reg-btn.active {
    background: #FFC107;
    color: #000000;
    cursor: pointer;
}

.reg-btn.active:hover {
    background: #ffca2c;
}