/* Login Sayfası Stilleri */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo img {
    max-width: 150px;
    height: auto;
    filter: drop-shadow(0px 0px 10px rgba(255, 255, 255, 0.3));
}

h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #fff;
    font-size: 28px;
    font-weight: 300;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-weight: 500;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #ff4444;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.2);
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #ff4444, #cc3333);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-btn:hover {
    background: linear-gradient(45deg, #cc3333, #aa2222);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4);
}

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

.error-message {
    background: rgba(255, 68, 68, 0.2);
    border: 1px solid #ff4444;
    color: #ff6666;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.login-info {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    text-align: center;
}

.login-info p {
    margin-bottom: 8px;
    color: #ccc;
    font-size: 14px;
}

.login-info p:first-child {
    color: #fff;
    font-weight: 600;
    margin-bottom: 15px;
}

.login-info strong {
    color: #ff4444;
}

/* Back to Home Button */
.back-to-home {
    margin-top: 30px;
    text-align: center;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    position: relative;
    overflow: hidden;
    text-transform: none;
    letter-spacing: 0.3px;
    min-width: 200px;
    justify-content: center;
}

.back-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ee5a24, #ff6b6b);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50px;
}

.back-btn:hover::before {
    opacity: 1;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
    color: #fff;
    text-decoration: none;
}

.back-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.back-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.back-btn span {
    position: relative;
    z-index: 1;
}

.back-btn:hover i {
    transform: translateX(-2px);
}

/* Language Switcher */
.language-switcher {
    margin-top: 20px;
    text-align: center;
}

.language-switcher select {
    padding: 8px 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-switcher select:focus {
    outline: none;
    border-color: #ff4444;
    background: rgba(255, 255, 255, 0.15);
}

.language-switcher select option {
    background: #2d2d2d;
    color: #fff;
}

/* RTL Support */
.rtl {
    direction: rtl;
}

.rtl .login-box {
    text-align: right;
}

.rtl .form-group label {
    text-align: right;
}

.rtl .login-info {
    text-align: right;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .login-container {
        padding: 15px;
    }
    
    .login-box {
        padding: 25px 20px;
        margin: 10px;
    }
    
    .logo img {
        max-width: 100px;
    }
    
    h2 {
        font-size: 22px;
        margin-bottom: 25px;
    }
    
    input[type="text"],
    input[type="password"] {
        padding: 12px 15px;
        font-size: 16px; /* iOS zoom önleme */
    }
    
    .login-btn {
        padding: 12px;
        font-size: 16px;
        margin-top: 15px;
    }
    
    .login-info {
        margin-top: 25px;
        padding: 15px;
    }
    
    .login-info p {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .language-switcher {
        margin-top: 15px;
    }
    
    .language-switcher select {
        padding: 10px 12px;
        font-size: 16px;
        width: 100%;
        max-width: 200px;
    }
    
    .back-btn {
        padding: 18px 28px;
        font-size: 16px;
        width: 100%;
        max-width: 280px;
        justify-content: center;
        border-radius: 50px;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 10px;
    }
    
    .login-box {
        padding: 20px 15px;
        margin: 5px;
    }
    
    .logo img {
        max-width: 80px;
    }
    
    h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    input[type="text"],
    input[type="password"] {
        padding: 10px 12px;
        font-size: 16px;
    }
    
    .login-btn {
        padding: 10px;
        font-size: 16px;
        margin-top: 10px;
    }
    
    .login-info {
        margin-top: 20px;
        padding: 12px;
    }
    
    .login-info p {
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    .language-switcher {
        margin-top: 12px;
    }
    
    .language-switcher select {
        padding: 8px 10px;
        font-size: 14px;
        width: 100%;
    }
    
    .back-btn {
        padding: 16px 24px;
        font-size: 15px;
        width: 100%;
        justify-content: center;
        border-radius: 50px;
        letter-spacing: 0.2px;
        min-width: auto;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .login-btn {
        min-height: 44px; /* iOS minimum touch target */
    }
    
    .language-switcher select {
        min-height: 44px;
    }
    
    input[type="text"],
    input[type="password"] {
        min-height: 44px;
    }
    
    .back-btn {
        min-height: 50px;
        padding: 18px 28px;
    }
}
