/* Modern Enhanced Admin Login Page */

/* Language Switcher for Admin */
.admin-language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 1000;
    direction: ltr;
}

.admin-language-switcher .lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 60px;
    height: 32px;
}

.admin-language-switcher .lang-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}

.admin-language-switcher .lang-btn.active {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 1);
    color: #333;
    font-weight: 600;
}

/* Enhanced Installation Box */
.tk-installation-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tk-installation-box .tk-main {
    padding: 40px;
}

.tk-installation-box h1 {
    color: white;
    font-size: 2.2rem;
    font-weight: 300;
    margin-bottom: 10px;
    text-align: center;
}

.tk-installation-box p {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Enhanced Form Styling */
.tk-installation-box .tk-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    color: white;
    font-size: 16px;
    width: 100%;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tk-installation-box .tk-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    outline: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.tk-installation-box .tk-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Enhanced Submit Button */
.tk-installation-box .tk-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.tk-installation-box .tk-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
    background: linear-gradient(45deg, #ee5a24, #ff6b6b);
}

.tk-installation-box .tk-btn:active {
    transform: translateY(0);
}

/* Loading Animation */
.tk-installation-box .tk-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.tk-installation-box .tk-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s ease infinite;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Messages */
.tk-installation-box .tk-error {
    background: rgba(255, 87, 87, 0.2);
    border: 1px solid rgba(255, 87, 87, 0.4);
    border-radius: 8px;
    padding: 12px 16px;
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
}

/* Success Messages */
.tk-installation-box .tk-success {
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid rgba(46, 204, 113, 0.4);
    border-radius: 8px;
    padding: 12px 16px;
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-language-switcher {
        top: 15px;
        right: 15px;
    }
    
    .admin-language-switcher .lang-btn {
        padding: 6px 10px;
        font-size: 11px;
        min-width: 50px;
        height: 28px;
    }
    
    .tk-installation-box .tk-main {
        padding: 30px 20px;
    }
    
    .tk-installation-box h1 {
        font-size: 1.8rem;
    }
}

/* RTL Support */
[dir="rtl"] .admin-language-switcher {
    right: auto;
    left: 20px;
}

[dir="rtl"] .admin-language-switcher .lang-btn {
    direction: ltr;
}

/* Password Visibility Toggle */
.password-field-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: rgba(255, 255, 255, 0.9);
}

[dir="rtl"] .password-toggle {
    right: auto;
    left: 15px;
}