﻿@font-face {
    font-family: 'Iran Yekan';
    src: url('/fonts/iranyekan/iranyekanwebregularfanum.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Iran Yekan';
    src: url('/fonts/iranyekan/iranyekanwebboldfanum.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Iran Yekan', 'Segoe UI', sans-serif; /* در صورت داشتن فونت کاستوم، آن را اینجا بگذارید */
}

.login-bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url('../images/back8.png'); /* می‌توانید مسیر عکس محو شده رستوران را اینجا بگذارید */
    background-size: cover;
    background-position: center;
    z-index: -2;
}



.main-login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ----------------------------------------------------
   کارت لاگین و المان‌های داخلی
---------------------------------------------------- */


.logo-img {
    width: 48px;
    height: 48px;
    border-radius:100px;
    object-fit: cover;
}

/* ----------------------------------------------------
   فیلدهای ورودی (Inputs)
---------------------------------------------------- */
.custom-input {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 12px 16px;
    font-size: 1rem;
    background-color: #fff;
    transition: all 0.3s ease;
}

    .custom-input:focus {
        border-color: #FF8800;
        box-shadow: 0 0 0 3px rgba(255, 136, 0, 0.15);
        background-color: #fff;
    }

.password-toggle-icon {
    position: absolute;
    right: 15px; /* فاصله از چپ در حالت RTL */
    top: 40px; /* تنظیم ارتفاع متناسب با لیبل */
    cursor: pointer;
    z-index: 10;
}

/* ----------------------------------------------------
   دکمه‌ها
---------------------------------------------------- */
.btn-orange {
    background-color: #FF8800;
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 136, 0, 0.3);
}

    .btn-orange:hover, .btn-orange:focus {
        background-color: #e07700;
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(255, 136, 0, 0.4);
    }

.text-success {
    color: #198754 !important;
}

.text-orange {
    color: #FF8800 !important;
}

.btn-edit-phone {
    background: transparent;
    border: none;
    color: #6c757d;
    font-size: 0.9rem;
    text-decoration: underline;
    transition: 0.2s;
}

    .btn-edit-phone:hover {
        color: #FF8800;
    }

/* ----------------------------------------------------
   پشتیبانی از Dark Mode
---------------------------------------------------- */
:root {
    --login-card-bg: #ffffff;
    --login-text: #212529;
    --login-input-bg: #ffffff;
    --login-input-border: #ced4da;
    --login-muted: #6c757d;
}

[data-theme="dark"] {
    --login-card-bg: #1e222a;
    --login-text: #f8f9fa;
    --login-input-bg: #2b303b;
    --login-input-border: #444b59;
    --login-muted: #adb5bd;
}

    [data-theme="dark"] .login-card,
    [data-theme="dark"] .modal-content {
        background-color: var(--login-card-bg) !important;
    }

    [data-theme="dark"] .text-dark {
        color: var(--login-text) !important;
    }

    [data-theme="dark"] .text-muted {
        color: var(--login-muted) !important;
    }

    [data-theme="dark"] .custom-input {
        background-color: var(--login-input-bg);
        border-color: var(--login-input-border);
        color: var(--login-text);
    }

        [data-theme="dark"] .custom-input:focus {
            background-color: var(--login-input-bg);
            color: var(--login-text);
        }
/* Removed the blur from the main background */
.login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Kept a slight dark tint so the white card remains readable, but removed backdrop-filter blur */
    background-color: rgba(0, 0, 0, 0.25);
    z-index: -1;
}

/* Added the blur effect around the card */
.login-card {
    /* Made the card background slightly transparent to enable a glass-like effect */
    background-color: rgba(255, 255, 255, 0.85) !important;
    width: 100%;
    max-width: 400px;
    padding: 2.5rem 2rem;
    border-radius: 20px !important;
    /* 1. This creates a soft, blurred shadow projecting outward around the card */
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.3) !important;
    /* 2. This blurs the background image exactly where the card sits (Glassmorphism effect) */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); /* For Safari support */
}

/* Update dark mode support for the card transparency */
[data-theme="dark"] .login-card,
[data-theme="dark"] .modal-content {
    background-color: rgba(30, 34, 42, 0.85) !important;
}
