/* assets/auth-modal.css */

/* =========================================
   1. Bootstrap Modal Overrides (ปรับแต่ง Modal)
   ========================================= */

/* ตัวกล่อง Modal */
.modal-content, .auth-modal-content { /* เพิ่ม class auth-modal-content ให้รองรับ */
    border: none;
    border-radius: 16px; /* มุมมนสไตล์ Modern Luxury */
    box-shadow: 0 15px 40px rgba(0,0,0,0.2); /* เงาฟุ้งๆ ดูมีมิติ */
    overflow: hidden;
    background-color: #ffffff;
}

/* หัวข้อ Modal */
.modal-body h3, .auth-title {
    font-family: var(--font-luxury, 'Cinzel', sans-serif); /* ใช้ฟอนต์หรู */
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

/* ปุ่มปิด (X) */
.btn-close {
    box-shadow: none !important;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.btn-close:hover {
    opacity: 1;
}

/* =========================================
   2. Form Styling (ปรับ Input ให้ดูแพง)
   ========================================= */

/* ปรับ Input ของ Bootstrap ให้เหลือแค่เส้นล่าง */
.modal-body .form-control, .auth-form-control {
    border: none;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0;
    padding: 12px 0;
    background-color: transparent;
    transition: all 0.3s ease;
    box-shadow: none;
}

/* Effect ตอนคลิกที่ช่องกรอก */
.modal-body .form-control:focus, .auth-form-control:focus {
    box-shadow: none;
    border-bottom-color: #1a1a1a; /* เปลี่ยนเส้นเป็นสีดำเข้ม */
    background-color: transparent;
}

/* Group wrapper สำหรับ input (เพิ่มใหม่เพื่อให้ระยะห่างสวยงาม) */
.auth-input-group {
    position: relative;
    margin-bottom: 1.2rem;
}

/* ปุ่มดำมาตรฐาน (LOGIN / REGISTER) */
.modal-body .btn-dark, .auth-btn-submit {
    background-color: #1a1a1a;
    color: #fff;
    border: none;
    letter-spacing: 1px;
    font-weight: 600;
    border-radius: 4px;
    padding: 12px 20px;
    transition: all 0.3s ease;
    width: 100%;
}

.modal-body .btn-dark:hover, .auth-btn-submit:hover {
    background-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    color: #fff;
}

/* =========================================
   3. Validation & Requirements (ส่วนที่เพิ่มใหม่)
   ========================================= */

/* รายการเงื่อนไขรหัสผ่าน */
.password-requirements {
    font-size: 0.75rem;
    color: #9ca3af; /* สีเทาจางๆ */
    margin-top: 8px;
    list-style: none;
    padding-left: 0;
    display: flex;
    gap: 15px;
}

.password-requirements li {
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.password-requirements li i {
    font-size: 0.8rem;
    margin-right: 4px;
}

/* สถานะผ่าน (สีเขียว) */
.password-requirements li.valid {
    color: #198754;
    font-weight: 500;
}

/* สถานะไม่ผ่าน (ใช้สีเทาปกติ หรือสีแดงถ้าต้องการเน้น) */
.password-requirements li.invalid {
    color: #9ca3af; 
}

/* ข้อความแจ้งเตือน Error ทั่วไป */
.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 8px;
    font-size: 0.85rem;
}

/* =========================================
   4. Social Login Buttons (ปุ่ม LINE & Google)
   ========================================= */

/* เส้นคั่น Social (OR CONTINUE WITH) - เพิ่มใหม่ */
.social-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: #adb5bd;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.social-divider::before, .social-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #e9ecef;
}

.social-divider span {
    padding: 0 15px;
}

/* Common Styles */
.btn-line-login,
.btn-google-login {
    display: flex;            
    align-items: center;        
    justify-content: center;    
    gap: 12px;                  

    width: 100%;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 50px;        
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 0.9rem;
    text-decoration: none; /* ลบเส้นใต้ */
}

/* ปุ่ม LINE */
.btn-line-login {
    background-color: #06C755;
    color: #ffffff !important;
    border: 1px solid transparent;
}

.btn-line-login:hover {
    background-color: #05b34c;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(6, 199, 85, 0.35);
}

/* ปุ่ม Google */
.btn-google-login {
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #e0e0e0;
}

.btn-google-login:hover {
    background-color: #f8f9fa;
    border-color: #d0d0d0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: #333333;
}

/* จัดการขนาด Icon */
.btn-line-login i, 
.btn-google-login i {
    font-size: 1.3rem; 
    line-height: 1;
}

/* =========================================
   5. Utilities (ตัวช่วยอื่นๆ)
   ========================================= */

/* สีทอง Luxury */
.text-gold {
    color: #c5a059 !important;
    text-decoration: none;
    transition: color 0.3s;
}

.text-gold:hover {
    color: #b08d4b !important;
    text-decoration: underline;
}