@font-face {
    font-family: 'Vazirmatn';
    src: url('./Vazirmatn-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/*@media (min-width:900px){*/
/*    .home-wrapper{max-width:720px}*/
/*}*/

* { box-sizing: border-box; }

body{
    margin: 0;
    font-family: "Vazirmatn", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Tahoma, Arial;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f3f4f6;
    color: #111827;
    direction: rtl;
    touch-action: manipulation;  /* reduces double-tap zoom on mobile */
    min-height: 100svh;
}

.signin-card {
    background: #fff;
    padding: 30px 24px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    text-align: center;

    /* PHONE: full device width */
    width: 100vw;
    max-width: 100vw;
    margin: 0; /* avoid unexpected side spacing */
}

/* DESKTOP: exactly one third of the page (viewport) */
@media (min-width: 1024px) {
    .signin-card {
        width: 33.333vw;     /* one third of the viewport width */
        max-width: none;     /* keep it strictly a third */
        border-radius: 16px; /* keep nice corners on desktop */
    }
}

.signin-card h2 {
    margin-bottom: 24px;
    font-size: 24px;
}

.input-group { margin-bottom: 16px; }

.input-group input {
    font-family: "Vazirmatn", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Tahoma, Arial;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 16px; /* >=16px prevents iOS auto-zoom on focus */
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s;
}

.input-group input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.primary-btn {
    font-family: "Vazirmatn", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Tahoma, Arial;
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 10px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 10px;
}

.primary-btn:hover { background: #2563eb; }
.primary-btn:active { transform: scale(0.98); }

/* Modal styles (unchanged) */
.popup-modal {
    position: fixed; inset: 0;
    backdrop-filter: blur(5px);
    background-color: rgba(0, 0, 0, 0.2);
    display: flex; justify-content: center; align-items: center;
    z-index: 999;
}
.popup-box {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 320px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    animation: popIn 0.3s ease;
}
.popup-box h3 { margin-top: 10px; font-size: 20px; }
.popup-box p { font-size: 14px; color: #444; margin: 12px 0 20px; }
.popup-box button {
    padding: 10px 20px; border: none; border-radius: 8px; font-size: 14px;
    cursor: pointer; background-color: #dc3545; color: white;
}

.hidden { display: none; }
@keyframes popIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Shared base for nice buttons */
.signup-btn,
.install-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 10px 18px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 12px;

    cursor: pointer;
    white-space: nowrap;

    background-size: 200% 200%;  /* smooth gradient */
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transition: transform 0.12s ease, box-shadow 0.2s ease, background-position 0.3s ease;
}

/* Click effect */
.signup-btn:active,
.install-btn:active {
    transform: translateY(2px) scale(0.97);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Signup button (greenish gradient) */
.signup-btn {
    font-family: "Vazirmatn", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Tahoma, Arial;
    background: linear-gradient(135deg, #a7f3d0, #34d399); /* light mint → teal */
    color: #065f46; /* dark green text */
    font-size: 1.1em;
}
.signup-btn:hover {
    background-position: right center;
    box-shadow: 0 6px 14px rgba(52, 211, 153, 0.35);
}

/* Install button (warm amber gradient) */
.install-btn {
    background: linear-gradient(135deg, #fde68a, #fbbf24); /* light yellow → amber */
    color: #78350f; /* dark brown text */
}
.install-btn:hover {
    background-position: right center;
    box-shadow: 0 6px 14px rgba(251, 191, 36, 0.35);
}

.signup-row {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    justify-content: space-between; /* left + right */
    align-items: center;
}
