/* ===================================
   Personel Modal Özel Stilleri
   Modern ve Şık Tasarım
   =================================== */

/* Modal Ana Container */
.personel-auth-modal {
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.6);
}

.personel-modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    overflow: hidden;
    position: relative;
}

.personel-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #405189 0%, #5a67d8 50%, #667eea 100%);
}

/* Header Bölümü */
.personel-modal-header {
    color: #2d3748;
    margin-bottom: 2rem;
}

.personel-icon-container {
    position: relative;
    display: inline-block;
}

.personel-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f7fafc, #edf2f7);
    box-shadow: 
        0 8px 32px rgba(64, 81, 137, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.8);
}

.personel-auth-icon {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 2px 8px rgba(64, 81, 137, 0.3));
    z-index: 2;
}

.personel-icon-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(64, 81, 137, 0.1) 0%, transparent 70%);
    animation: personelGlow 3s ease-in-out infinite alternate;
}

@keyframes personelGlow {
    0% { transform: scale(0.95); opacity: 0.5; }
    100% { transform: scale(1.05); opacity: 0.8; }
}

.personel-modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.personel-modal-subtitle {
    font-size: 1rem;
    color: #718096;
    font-weight: 500;
    margin-bottom: 0;
}

/* Form ve Input Stilleri */
.personel-password-form {
    margin-bottom: 1.5rem;
}

.personel-input-row {
    justify-content: center;
    max-width: 280px;
    margin: 0 auto;
}

.personel-input-group {
    position: relative;
}

.personel-digit-input {
    height: 60px;
    width: 60px;
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    color: #2d3748;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
}

.personel-digit-input:focus {
    border-color: #405189;
    box-shadow: 
        0 0 0 3px rgba(64, 81, 137, 0.1),
        0 4px 16px rgba(64, 81, 137, 0.15);
    transform: translateY(-2px);
    outline: none;
}

.personel-digit-input:not(:placeholder-shown) {
    border-color: #48bb78;
    background: linear-gradient(145deg, #f0fff4, #ffffff);
}

.personel-digit-input::placeholder {
    color: #cbd5e0;
    font-size: 1.2rem;
}

/* Input Indicator */
.personel-input-indicator {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #405189, #5a67d8);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.personel-digit-input:focus + .personel-input-indicator,
.personel-digit-input:not(:placeholder-shown) + .personel-input-indicator {
    width: 100%;
}

/* Buton Stilleri */
.personel-verify-btn {
    height: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    background: linear-gradient(135deg, #405189 0%, #5a67d8 100%);
    border: none;
    box-shadow: 0 4px 16px rgba(64, 81, 137, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.personel-verify-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.personel-verify-btn:hover::before {
    left: 100%;
}

.personel-verify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(64, 81, 137, 0.4);
}

.personel-verify-btn:active {
    transform: translateY(0);
}

/* Hata Mesajı */
.personel-error-message {
    animation: personelShake 0.5s ease-in-out;
}

.personel-error-content {
    background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
    color: #c53030;
    padding: 12px 20px;
    border-radius: 10px;
    border-left: 4px solid #e53e3e;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.15);
}

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

/* Loading Indicator */
.personel-loading-content {
    background: linear-gradient(135deg, #e6fffa 0%, #b2f5ea 100%);
    color: #2c7a7b;
    padding: 12px 20px;
    border-radius: 10px;
    border-left: 4px solid #38b2ac;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(56, 178, 172, 0.15);
}

/* Footer Bölümü */
.personel-modal-footer {
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.personel-help-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.personel-help-text {
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
}

.personel-whatsapp-link {
    color: #25d366;
    text-decoration: none;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.personel-whatsapp-link:hover {
    background: rgba(37, 211, 102, 0.1);
    color: #1da851;
    transform: translateY(-1px);
}

/* Responsive Tasarım */
@media (max-width: 576px) {
    .personel-modal-content {
        margin: 1rem;
        border-radius: 16px;
    }
    
    .personel-digit-input {
        height: 50px;
        width: 50px;
        font-size: 1.25rem;
    }
    
    .personel-input-row {
        max-width: 240px;
    }
    
    .personel-modal-title {
        font-size: 1.5rem;
    }
    
    .personel-icon-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .personel-auth-icon {
        width: 35px;
        height: 35px;
    }
}

/* Dark Mode Desteği */
@media (prefers-color-scheme: dark) {
    .personel-modal-content {
        background: linear-gradient(145deg, #2d3748 0%, #1a202c 100%);
        color: #e2e8f0;
    }
    
    .personel-modal-title {
        color: #e2e8f0;
    }
    
    .personel-modal-subtitle {
        color: #a0aec0;
    }
    
    .personel-digit-input {
        background: #4a5568;
        border-color: #718096;
        color: #e2e8f0;
    }
    
    .personel-digit-input:focus {
        background: #2d3748;
        border-color: #667eea;
    }
    
    .personel-help-text {
        color: #a0aec0;
    }
}

/* Animasyonlar */
.personel-auth-modal.show .personel-modal-content {
    animation: personelModalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes personelModalSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Accessibility İyileştirmeleri */
.personel-digit-input:focus-visible {
    outline: 2px solid #405189;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .personel-icon-glow {
        animation: none;
    }
    
    .personel-auth-modal.show .personel-modal-content {
        animation: none;
    }
    
    .personel-error-message {
        animation: none;
    }
}