/**
 * WJHTAK Auth Login - Modern Luxury Redesign
 * Centered Minimalist Theme
 */

:root {
    --primary: #0f4c3a;
    --primary-light: #166e54;
    --secondary: #0078aa;
    --accent: #ffc107;
    --bg-light: #f4f7f6;
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --white: #ffffff;
    --card-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    --input-bg: #f8faf9;
    --radius: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.auth-travel {
    font-family: "Cairo", "Poppins", "Inter", sans-serif;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

/* Panoramic Background */
.auth-background {
    display: none; /* Removed background image for a clean white look */
}

/* Glassmorphism Elements */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-light);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: -50px;
    left: -50px;
}

/* Main Container */
.auth-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    z-index: 10;
}

/* Luxury card */
.auth-card {
    background: #ffffff;
    border: 1px solid #eef2f1;
    border-radius: 24px;
    padding: 45px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05); /* Softer shadow for white background */
    transition: transform 0.3s ease;
}

.auth-card:hover {
    transform: translateY(-5px);
}

/* Header */
.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-logo img {
    max-width: 140px;
    height: auto;
    margin-bottom: 25px;
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-container {
    position: relative;
}

.input-container i.icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    transition: color 0.3s;
}

[dir="rtl"] .input-container i.icon {
    left: auto;
    right: 16px;
}

.form-control {
    width: 100%;
    padding: 14px 16px 14px 45px;
    background: var(--input-bg);
    border: 2px solid #eef2f1;
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: all 0.3s;
}

[dir="rtl"] .form-control {
    padding: 14px 45px 14px 16px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(15, 76, 58, 0.08);
}

.form-control:focus + i.icon {
    color: var(--primary);
}

/* Password Toggle */
.btn-toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 5px;
}

[dir="rtl"] .btn-toggle-password {
    right: auto;
    left: 16px;
}

/* Remember Me */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    font-size: 0.85rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-muted);
}

.checkbox-container input {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

[dir="rtl"] .checkbox-container input {
    margin-right: 0;
    margin-left: 8px;
}

.forgot-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Submit Button */
.btn-auth {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(15, 76, 58, 0.15);
}

.btn-auth:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(15, 76, 58, 0.2);
}

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

/* Language Switcher */
.auth-footer {
    text-align: center;
    margin-top: 25px;
}

.lang-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.lang-switch-btn:hover {
    background: var(--white);
    transform: scale(1.05);
}

/* Status Messages */
.alert-status {
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #e6f7ef;
    color: #0b4e31;
    border: 1px solid #cceee0;
}

.alert-error {
    background: #fdf2f2;
    color: #9b1c1c;
    border: 1px solid #fbd5d5;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card {
    animation: fadeInDown 0.6s ease-out;
}

/* Responsiveness */
@media (max-width: 576px) {
    .auth-container {
        padding: 15px;
    }

    .auth-card {
        padding: 35px 25px;
        border-radius: 20px;
    }

    .auth-header h1 {
        font-size: 1.5rem;
    }
}
