﻿@font-face {
    font-family: 'IRANYekan';
    src: url('/Font/IRANYekanWebRegular.woff2') format('woff2'), url('/Font/IRANYekanRegular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'IRANYekan';
    src: url('/Font/IRANYekanWebBold.woff2') format('woff2'), url('/Font/IRANYekanBold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'IRANYekan', sans-serif !important;
    background: linear-gradient(135deg, #0B8F98, #57C5C6);
    background-size: cover;
    height: 100vh !important;
    overflow: auto;
}

.container-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 1rem;
}

/* باکس اصلی */
.login-box {
    width: 95%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1.8rem;
    padding: 2rem 2rem 2.5rem 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    color: #fff;
    animation: fadeInUp 0.8s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تب‌ها */
.tabs {
    display: flex;
    width: 100%;
    background: rgba(255,255,255,0.2);
    border-radius: 9999px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.tab {
    flex: 1;
    padding: 0.8rem;
    font-size: 0.7rem;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-active {
    background-color: #57C5C6;
    color: white;
    border-radius: 9999px;
    box-shadow: 0 0 10px rgba(87,197,198,0.5);
}

.tab-inactive {
    color: #0B8F98;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 9999px;
}

/* فیلدها */
.form-control {
    width: 100%;
    padding: 1.1rem;
    font-size: 1.1rem;
    border-radius: 0.9rem;
    border: none;
    outline: none;
    color: #0B8F98;
    background: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

    .form-control:focus {
        box-shadow: 0 0 8px rgba(87, 197, 198, 0.8);
    }

/* دکمه */
.btn {
    background-color: #0B8F98;
    color: #fff;
    font-size: 1.2rem;
    padding: 1.1rem;
    border-radius: 0.9rem;
    width: 100%;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
    font-weight: bold;
    border: none;
}

    .btn:hover {
        background-color: #09737B;
        transform: scale(1.03);
        box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    }

/* لوگو */
.logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0px);
    }
}

.footer-text {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    margin-top: 1.8rem;
    text-align: center;
}

/* موبایل */
@media (max-width: 768px) {
    .login-box {
        width: 80% !important;
        max-width: 80% !important;
        min-height: 8vh !important;
        padding: 2.5rem 1.8rem !important;
    }

    .logo {
        width: 100px;
        height: 100px;
    }

    .form-control {
        font-size: 1.1rem;
        padding: 1.2rem;
    }

    .btn {
        font-size: 1.3rem;
        padding: 1.2rem;
    }
}


           





/* بک‌دراپ */
.ios-popup-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
    z-index: 99999;
    animation: fadeIn .3s ease;
}

/* باکس اصلی */
.ios-popup {
    background: #fff;
    width: 90%;
    max-width: 380px;
    border-radius: 20px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    font-family: 'IRANYekan', sans-serif;
    animation: popupScale .3s ease;
}

/* عنوان */
.ios-popup h3 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
}

/* متن */
.ios-popup p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 18px;
}

/* دکمه */
.ios-popup button {
    background: #0B8F98;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    font-weight: bold;
    transition: .2s;
}

.ios-popup button:hover {
    opacity: 0.9;
}

/* آیکون Share */
.ios-share-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    margin: 10px 0;
    background: url('https://cdn-icons-png.flaticon.com/512/60/60581.png') no-repeat center center;
    background-size: contain;
}

/* فلش انیمیشنی */
.ios-arrow {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    background: url('https://cdn-icons-png.flaticon.com/512/545/545680.png') no-repeat center center;
    background-size: contain;
    animation: arrowBounce 1s infinite alternate;
}

@keyframes arrowBounce {
    from {
        transform: translateY(0px);
    }

    to {
        transform: translateY(-10px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes popupScale {
    from {
        transform: scale(0.7);
    }

    to {
        transform: scale(1);
    }
}