/* ================================================================
   AFFILIATE LOGIN PAGE - PREMIUM DESIGN
   ================================================================ */

/* --- General Styling --- */
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

#content {
    padding: 0 !important;
}

/* --- Login Container --- */
.login-container {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    margin: 2rem 0;
}

/* --- Left Side - Image --- */
.login-image-side {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../img/dotland-intro.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 600px;
}

/* --- Right Side - Login Form --- */
.login-form-side {
    padding: 2rem 2.5rem;
}

.form-content h3 {
    color: #a91b0d;
    font-weight: bold;
    font-size: 1.75rem;
}

/* --- Form Inputs --- */
.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    z-index: 10;
    pointer-events: none;
}

.input-icon i {
    font-size: 1.1rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem 0.75rem 45px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #a91b0d;
    box-shadow: 0 0 0 0.25rem rgba(169, 27, 13, 0.1);
}

.form-control.is-invalid {
    border-color: #dc3545;
    padding-right: 45px;
}

.btn-toggle-password {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 45px;
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.btn-toggle-password:hover {
    color: #a91b0d;
}

/* --- Checkbox --- */
.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #dee2e6;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #a91b0d;
    border-color: #a91b0d;
}

.form-check-input:focus {
    border-color: #a91b0d;
    box-shadow: 0 0 0 0.25rem rgba(169, 27, 13, 0.1);
}

.form-check-label {
    cursor: pointer;
    user-select: none;
    color: #6c757d;
    font-size: 0.9rem;
}

/* --- Links --- */
.forgot-password {
    color: #a91b0d;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #dc3545;
    text-decoration: underline;
}

.signup-link {
    color: #a91b0d;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.signup-link:hover {
    color: #dc3545;
    text-decoration: underline;
}

/* --- Button --- */
.btn-primary {
    background: linear-gradient(135deg, #a91b0d 0%, #dc3545 100%);
    border: none;
    border-radius: 10px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(169, 27, 13, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(169, 27, 13, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary .spinner-border {
    width: 1rem;
    height: 1rem;
    margin-left: 0.5rem;
}

/* --- Alert Messages --- */
#alert-container .alert {
    border-radius: 10px;
    border: none;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
}

.alert-success {
    background: #d1f2eb;
    color: #0f5132;
}

.alert-danger {
    background: #f8d7da;
    color: #842029;
}

/* --- Responsive Design --- */
@media (max-width: 991px) {
    .login-form-side {
        padding: 3rem 2rem;
    }
}

@media (max-width: 767px) {
    .login-container {
        margin: 1rem 0;
        border-radius: 16px;
    }
    
    .login-form-side {
        padding: 2rem 1.5rem;
    }
    
    .form-content h3 {
        font-size: 1.5rem;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start !important;
    }
    
    .forgot-password {
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    .login-form-side {
        padding: 1.5rem 1.25rem;
    }
    
    .form-control {
        font-size: 0.9rem;
        padding: 0.65rem 0.85rem 0.65rem 40px;
    }
    
    .input-icon {
        width: 40px;
    }
    
    .btn-toggle-password {
        width: 40px;
    }
    
    .btn-primary {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}
