/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Genel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Modern arka plan deseni - Izgara desenli */
.background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0d4e41 0%, #128C7E 100%);
    opacity: 0.9;
    z-index: -2;
}

.background-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><rect width="200" height="200" fill="%23ffffff" fill-opacity="0.03"/><path d="M0 50 L200 50 M0 100 L200 100 M0 150 L200 150 M50 0 L50 200 M100 0 L100 200 M150 0 L150 200" stroke="%23ffffff" stroke-width="1" stroke-opacity="0.05"/></svg>');
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Login Container */
.login-container {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #0d4e41, #128C7E);
}

/* Logo Header */
.logo-header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 25px;
}

.logo {
    width: 140px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.company-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    display: inline-block;
    margin-bottom: 10px;
}

.logo-container h1 {
    color: #075E54;
    font-size: 28px;
    margin-bottom: 5px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

.version-badge {
    display: inline-block;
    background: linear-gradient(90deg, #0d4e41, #128C7E);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 20px;
    position: absolute;
    top: -5px;
    right: -15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo-container h2 {
    color: #128C7E;
    font-size: 18px;
    font-weight: 500;
    background-color: #f0f7f4;
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 5px;
    border: 1px dashed #25D366;
}

/* Form Container */
.form-container {
    width: 100%;
    max-width: 400px;
    position: relative;
    padding: 30px 25px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
}

.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: rgba(13, 78, 65, 0.05);
    color: #0d4e41;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 3px solid #0d4e41;
}

.security-badge i {
    color: #25D366;
}

/* Mini Güvenlik Rozeti */
.mini-security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 15px;
    font-size: 12px;
    color: #666;
    text-align: center;
}

.mini-security-badge i {
    font-size: 12px;
    color: #0d4e41;
}

.security.form-container {
    width: 100%;
    padding: 0;
    margin-top: 10px;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #0d4e41;
    font-size: 18px;
}

.input-group input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    background-color: #f8f9fa;
    transition: all 0.3s;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.input-group input:focus {
    outline: none;
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(13, 78, 65, 0.2), inset 0 2px 4px rgba(0,0,0,0.05);
}

.login-spacer {
    height: 20px;
    margin-bottom: 20px;
}

.login-button {
    width: 100%;
    background: linear-gradient(90deg, #0d4e41, #128C7E);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(13, 78, 65, 0.2);
}

.login-button: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: 0.5s;
}

.login-button:hover {
    background: linear-gradient(90deg, #128C7E, #0d4e41);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 78, 65, 0.25);
}

.login-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(13, 78, 65, 0.2);
}

/* Login Footer */
.login-footer {
    width: 100%;
    margin-top: 30px;
    text-align: center;
}

.features-badge {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.feature {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: rgba(13, 78, 65, 0.08);
    color: #0d4e41;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.feature:hover {
    background-color: #e7f3ef;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    border-color: #25D366;
}

.feature i {
    color: #25D366;
    font-size: 14px;
}

.copyright {
    margin-top: 20px;
    text-align: center;
}

.copyright p {
    font-size: 12px;
    color: #777;
    margin-bottom: 5px;
}

.build-info {
    font-size: 10px !important;
    color: #999 !important;
}

/* WhatsApp Destek Butonu */
.whatsapp-support {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-btn i {
    font-size: 24px;
}

.whatsapp-btn .whatsapp-text {
    display: inline-block;
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    body {
        height: auto;
        min-height: 100vh;
    }
    
    .container {
        padding: 10px;
    }
    
    .login-container {
        padding: 20px;
        margin: 10px;
        max-width: 100%;
    }
    
    .logo {
        width: 100px;
    }
    
    .company-title {
        font-size: 20px;
    }
    
    .login-title {
        font-size: 18px;
    }
    
    .input-group input {
        padding: 12px 20px 12px 45px;
        font-size: 14px;
    }
    
    .login-button {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .features-badge {
        flex-direction: column;
        align-items: center;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        padding: 0;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-btn .whatsapp-text {
        display: none;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 15px;
    }
}

/* Küçük Mobil Cihazlar */
@media (max-width: 480px) {
    .login-container {
        padding: 15px;
    }
    
    .logo {
        width: 80px;
    }
    
    .company-title {
        font-size: 18px;
    }
    
    .login-title {
        font-size: 16px;
    }
    
    .input-group {
        margin-bottom: 15px;
    }
    
    .input-group input {
        padding: 10px 15px 10px 40px;
        font-size: 14px;
    }
    
    .login-button {
        padding: 8px 12px;
    }
    
    .feature {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .feature i {
        font-size: 12px;
    }
}

/* Hata mesajı ve animasyonlar */
.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin: 10px 0;
    padding: 8px 12px;
    background-color: rgba(231, 76, 60, 0.1);
    border-left: 3px solid #e74c3c;
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-message i {
    font-size: 16px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake-animation {
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .login-container {
        padding: 20px;
    }
    
    .logo {
        width: 60px;
    }
    
    .logo-container h1 {
        font-size: 20px;
    }
    
    .logo-container h2 {
        font-size: 14px;
    }
    
    .version-badge {
        right: -30px;
        font-size: 10px;
        padding: 2px 8px;
    }
    
    .feature {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .form-container {
        padding: 20px 15px;
    }
}
