/*
 * DiziXYZ Restaurant - Login Page Styles
 */
body {
    background: linear-gradient(135deg, #f5f3ff, #eef2ff);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.language-switcher {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%); /* Center the element horizontally on mobile */
    display: flex;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.5);
    padding: 0.5rem;
    border-radius: 999px;
    z-index: 10;
}

.language-switcher a {
    text-decoration: none;
    color: #6b7280;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    transition: all 0.3s ease;
}

.language-switcher a.active {
    background-color: var(--primary-color, #5E2750);
    color: white;
}

/* New Media Query to adjust for larger screens */
@media (min-width: 768px) {
    .language-switcher {
        left: auto; /* Reset left positioning */
        right: 2rem; /* Position to the top right */
        transform: none; /* Remove the horizontal transform */
    }
}

.login-box {
    background-color: var(--card-background, white);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-color, #5E2750);
    margin-bottom: 1rem;
}

.login-header i {
    font-size: 2rem;
}

.login-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
}

.login-box h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color, #333);
}

.login-box .tagline {
    color: var(--text-color-light, #6B7280);
    margin-bottom: 2rem;
}

.error-message {
    background-color: #fee2e2;
    color: #b91c1c;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: var(--text-color-light, #9CA3AF);
}

html[dir="rtl"] .input-group i {
    left: auto;
    right: 1rem;
}

.input-group input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid var(--border-color, #E5E7EB);
    border-radius: 0.5rem;
    background-color: var(--background-color, #F9FAFB);
    transition: all 0.3s ease;
}

html[dir="rtl"] .input-group input {
    padding: 0.75rem 3rem 0.75rem 1rem;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color, #5E2750);
    box-shadow: 0 0 0 3px var(--secondary-color, #F3E8FF);
}

.login-btn {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    background-color: var(--primary-color, #5E2750);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background-color: var(--primary-color-hover, #4A1F40);
    transform: translateY(-2px);
}
