﻿:root {
    --wood: #c89b6d;
    --green: #4caf50;
    --bg-glass: rgba(255, 255, 255, 0.25);
    --dark: #333;
    --soft-border: rgba(255,255,255,0.3);
}

* {
    box-sizing: border-box;
    font-family: main-font !important;
}

body {
    margin: 0;
    min-height: 100vh;
    background: url('/Files/orig.jpg') center center / cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

@font-face {
    font-family: "main-font";
    src: url("/assets/fonts/en-num/azarmehr-400.eot");
    src: url("/assets/fonts/en-num/azarmehr-400.eot?#iefix") format("embedded-opentype"),
        url("/assets/fonts/en-num/azarmehr-400.woff2") format("woff2"), url("/assets/fonts/en-num/azarmehr-400.woff") format("woff"),
        url("/assets/fonts/en-num/azarmehr-400.ttf") format("truetype");
    font-weight: 400;
}


.login-card {
    width: 100%;
    max-width: 420px;
    border-radius: 15px;
    backdrop-filter: blur(8px);
    background: var(--bg-glass);
    border: 1px solid var(--soft-border);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    padding: 30px;
    color: var(--dark);
}

.login-title {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 25px;
    color: var(--dark);
}

.tabs {
    display: flex;
    margin-bottom: 20px;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: 0.3s;
}

    .tab.active {
        border-color: var(--wood);
        color: var(--dark);
        font-weight: bold;
    }

.form {
    display: none;
}

    .form.active {
        display: block;
    }

.form-group {
    margin-bottom: 15px;
}

label {
    font-size: 14px;
}

input {
    width: 100%;
    padding: 11px;
    margin-top: 5px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 15px;
    background-color: rgba(255,255,255,0.7);
}

    input:focus {
        outline: none;
        border-color: var(--wood);
    }

.btn {
    width: 100%;
    padding: 12px;
    background: var(--wood);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

    .btn:hover {
        opacity: 0.9;
    }

.extra {
    text-align: center;
    margin-top: 12px;
}

    .extra a {
        color: var(--green);
        text-decoration: none;
        font-size: 14px;
        cursor: pointer;
    }

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

    .modal.show {
        display: flex;
    }

.modal-content {
    background: rgba(255,255,255,0.9);
    width: 100%;
    max-width: 380px;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,.2);
}

.modal-title {
    text-align: center;
    margin-bottom: 15px;
    color: var(--dark);
}

@media (max-width: 480px) {
    .login-card {
        padding: 22px;
    }
}

#toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    min-width: 280px;
    max-width: 360px;
    background: rgba(255, 255, 255, 0.92);
    color: #333;
    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(8px);
    border-right: 5px solid #e53935;
    animation: slideInRight 0.45s cubic-bezier(.22,.61,.36,1), fadeOutRight 0.4s ease 3.2s forwards;
}

.toast-icon {
    font-size: 22px;
   /* color: #e53935;*/
}

.toast-text {
    font-size: 14px;
    line-height: 1.6;
    text-align: right;
    flex: 1;
}
/* ارور قرمز */
.toast.error {
    border-right: 5px solid #e53935;
}

    .toast.error .toast-icon {
        color: #e53935;
    }

/* موفقیت سبز */
.toast.success {
    border-right: 5px solid #00c853;
}

    .toast.success .toast-icon {
        color: #00c853;
    }
/* ✅ انیمیشن‌ها */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(120%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOutRight {
    to {
        opacity: 0;
        transform: translateX(120%);
    }
}

/* ✅ Overlay تمام‌صفحه */
#loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* ✅ کارت مرکزی لودینگ */
.loading-box {
    background: rgba(255,255,255,0.35);
    border-radius: 20px;
    padding: 40px 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    text-align: center;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.4);
}

/* ✅ اسپینر سه‌بعدی */
.spinner {
    width: 55px;
    height: 55px;
    border: 5px solid rgba(0,0,0,0.1);
    border-top: 5px solid #0077ff;
    border-radius: 50%;
    margin: 0 auto 18px;
    animation: spin 1.1s linear infinite;
}

/* ✅ انیمیشن چرخش */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ✅ متن */
.loading-text {
    font-size: 15px;
    color: #333;
    letter-spacing: 0.4px;
    font-weight: 500;
}

/* Overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: 0.35s;
}

    .modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }

/* Box */
.modal-box {
    width: 360px;
    max-width: 90%;
    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 28px 26px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.25);
    text-align: center;
}

    .modal-box h3 {
        margin-bottom: 10px;
    }

.modal-desc {
    font-size: 13px;
    opacity: 0.85;
    margin-bottom: 18px;
}

.otp-input {
    width: 100%;
    height: 50px;
    border-radius: 12px;
    border: none;
    text-align: center;
    font-size: 22px;
    letter-spacing: 8px;
    outline: none;
}

/* Timer */
.timer-row {
    display: flex;
    justify-content: space-between;
    margin: 16px 0;
    font-size: 14px;
}

#timerText {
    font-weight: bold;
}

#resendBtn {
    border: none;
    background: none;
    color: #999;
    cursor: not-allowed;
}

    #resendBtn.active {
        color: #0077ff;
        cursor: pointer;
    }

/* Buttons */
.modal-actions {
    display: flex;
    gap: 10px;
}

.btn {
    flex: 1;
    height: 42px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

    .btn.submit {
        background: #0077ff;
        color: #fff;
    }

    .btn.cancel {
        background: #eee;
    }



.fp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 11000;
    opacity: 0;
    visibility: hidden;
    transition: 0.35s;
}

    .fp-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.fp-box {
    width: 360px;
    max-width: 90%;
    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 30px 26px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    position: relative;
    text-align: center;
}

.fp-desc {
    font-size: 13px;
    margin-bottom: 14px;
    opacity: 0.85;
}

.fp-step {
    display: none;
}

    .fp-step.active {
        display: block;
    }

.fp-box input {
    width: 100%;
    height: 44px;
    border-radius: 10px;
    border: none;
    padding: 0 14px;
    margin-bottom: 12px;
    outline: none;
}

.fp-otp {
    text-align: center;
    font-size: 22px;
    letter-spacing: 8px;
}

.fp-btn {
    width: 100%;
    height: 44px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    margin-top: 8px;
    font-size: 14px;
}

    .fp-btn.primary {
        background: #0077ff;
        color: #fff;
    }

    .fp-btn.success {
        background: #00c853;
        color: #fff;
    }

.fp-timer {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 10px;
}

#fp_resend {
    border: none;
    background: none;
    color: #aaa;
    cursor: not-allowed;
}

    #fp_resend.active {
        color: #0077ff;
        cursor: pointer;
    }

.fp-close {
    position: absolute;
    top: 10px;
    left: 14px;
    border: none;
    background: none;
    font-size: 22px;
    cursor: pointer;
}