/* login-modal.css - Bütün modal stilləri bu fayldadır */

/* Konfliktləri önləmək üçün global hidden sinfi (JS tərəfindən istifadə olunur) */
.hidden {
    display: none !important;
}

/* Modal Konteyneri Stili (#loginModal) */
#loginModal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modalın içindəki məzmunun əsas konteyneri */
#loginModal .modal-content-inner {
    background-color: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 448px; 
    position: relative;
}

/* Başlıq */
#loginModal h2 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 16px;
    text-align: center;
}

/* Bağlama düyməsi */
#loginModal .close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 32px; 
    color: #6b7280;
    cursor: pointer;
    border: none;
    background: none;
}
#loginModal .close-btn:hover {
    color: #ef4444; 
}

/* Rol Seçimi Buttonları (#stepRole) */
#stepRole button {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 12px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease;
}
#stepRole button:first-child {
    background-color: #dbeafe; /* İstifadəçi: Light Blue */
    color: #1e40af; 
}
#stepRole button:last-child {
    background-color: #ffedd5; /* Sahibkar: Light Orange */
    color: #9a3412; 
    margin-bottom: 0;
}

/* Telefon Addımı Konteyneri (#stepPhone) */
#stepPhone {
    margin-top: 16px; 
}
#stepPhone p {
    font-size: 14px; 
    margin-bottom: 8px; 
    text-align: center;
}
.phone-input-group {
    display: flex;
    margin-bottom: 12px;
}
.phone-prefix {
    padding: 10px 12px;
    background-color: #e5e7eb;
    border: 1px solid #d1d5db;
    border-right: none;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    font-size: 14px;
    display: flex;
    align-items: center;
}
#phoneInput {
    width: 100%;
    border: 1px solid #d1d5db;
    padding: 10px 12px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    font-size: 14px;
    outline: none;
}

/* Kod Göndər Buttonu */
#sendOtpBtn {
    width: 100%;
    background-color: #2563eb; 
    color: white;
    padding: 8px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

/* Mesajlar */
#otpMessage {
    text-align: center;
    font-size: 14px;
    margin-top: 8px;
    font-weight: 600;
}

/* ********** OTP ADDIMI DÜZƏLİŞİ (#stepOTP) ********** */
#stepOTP {
    margin-top: 16px; 
    display: flex;
    flex-direction: column;
    align-items: center; 
}

#stepOTP input[type="text"] {
    /* Görünüşü səliqəli etmək üçün Inputun genişliyini məhdudlaşdırır və mərkəzləşdirir */
    width: 150px; 
    max-width: 100%;
    
    border: 1px solid #d1d5db;
    padding: 8px 12px;
    border-radius: 4px;
    text-align: center;
    
    margin-bottom: 12px; /* Təsdiqlə düyməsi ilə məsafə */
}

/* Təsdiqlə Buttonu */
#confirmOtpBtn {
    width: 100%;
    background-color: #10b981; 
    color: white;
    padding: 8px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    margin-bottom: 12px; /* Aşağıdakı geri sayım üçün məsafə */
}

/* Geri sayım və Yenidən göndərmə bloku (#resendInfo) */
#resendInfo {
    text-align: center;
    margin-top: 8px;
    font-size: 14px;
    color: #4b5563; 
    padding-top: 8px;
    width: 100%;
}

#countdown {
    margin-bottom: 5px;
    font-weight: 600;
    color: #374151;
}

#resendButton {
    color: #2563eb; 
    text-decoration: underline;
    margin-top: 4px; 
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
}