﻿/* تعریف فونت ایران‌سنس */
@font-face {
    font-family: 'IRANSansX';
    src: url('../Assets/fonts/IRANSansWeb_Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IRANSansX', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #e0f2f1 0%, #b2dfdb 100%);
    padding: 1rem;
    min-height: 100vh;
    overflow: auto;
}

/* کارت اصلی */
.card-container {
    max-width: 400px;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 480px;
}

.card-wrapper {
    position: relative;
    width: 100%;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* صفحات */
.page {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    width: 100%;
    background: rgba(255, 255, 255, 0.55);
/*            backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);*/
    border-radius: 48px 16px 48px 16px;
    box-shadow: 0 12px 40px -10px rgba(0, 80, 80, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset,
        0 0 40px rgba(0, 200, 200, 0.06);
    padding: 2rem 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center center;
    pointer-events: none;
}

/* صفحه ورود - پیش‌فرض */
.page-login {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: all;
    z-index: 2;
}

/* صفحات دیگر - پنهان */
.page-register,
.page-forgot {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(0.7);
    pointer-events: none;
    z-index: 1;
}
.d-none{
    display:none !important;
}
/* حالت‌های active */
.card-wrapper.active-register .page-login {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(0.7);
    pointer-events: none;
    z-index: 1;
}
.card-wrapper.active-register .page-register {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: all;
    z-index: 2;
}

.card-wrapper.active-forgot .page-login {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(0.7);
    pointer-events: none;
    z-index: 1;
}
.card-wrapper.active-forgot .page-forgot {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: all;
    z-index: 2;
}

/* ===== استایل‌های مشترک ===== */
.login-header {
    text-align: center;
    margin-bottom: 1.8rem;
}

.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #26a69a, #00897b);
    border-radius: 40% 60% 40% 60%;
    box-shadow: 0 8px 20px -6px #00897b80, 0 0 0 2px rgba(255, 255, 255, 0.5) inset;
    margin-bottom: 0.8rem;
    transition: 0.3s;
}

.icon-circle i {
    font-size: 2.8rem;
    color: #fff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.06));
}

.login-header h1 {
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(120deg, #00695c, #26a69a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom:1rem;
}

.login-header .sub {
    font-size: 0.75rem;
    font-weight: 300;
    color: #00796b;
    background: rgba(255, 255, 255, 0.5);
    padding: 0.2rem 1.4rem;
    border-radius: 30px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    letter-spacing: 0.5px;
    display: inline-block;
}

.input-group {
    margin-bottom: 1.4rem;
    position: relative;
}

.input-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #00695c;
    margin-bottom: 0.3rem;
    padding-right: 0.5rem;
    letter-spacing: 0.2px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    border-radius: 10px 10px 40px 10px;
    box-shadow: 0 2px 8px rgba(0, 100, 100, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-direction:row-reverse;
    padding-left:1rem;
}

.input-wrapper:focus-within {
    box-shadow: 0 4px 16px rgba(0, 150, 150, 0.15), 0 0 10px 3px #26a69a60;
    background: rgba(255, 255, 255);
    transform: scale(1.0);
}

.input-wrapper i {
    font-size: 1.1rem;
    color: #00897b;
    padding: 0 0.8rem 0 0.4rem;
    width: 2.4rem;
    text-align: center;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.03));
}

.input-wrapper input {
    width: 100%;
    padding: 0.7rem 0.5rem 0.7rem .5rem;
    border: none;
    background: transparent;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: #004d40;
    outline: none;
    direction: ltr;
    border-radius: 0 10px 40px 0;
}

input::placeholder {
    font-weight: 400;
    font-size: .8rem;
    color: #506a67;
    letter-spacing: 0.3px;
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.2rem 0 1.6rem 0;
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #00695c;
    font-weight: 400;
}

.remember input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    border-radius: 8px 2px 8px 2px;
    border: 1px solid #4db6ac;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remember input[type="checkbox"]:checked {
    background: linear-gradient(145deg, #26a69a, #00897b);
    border-color: #00897b;
}

.remember input[type="checkbox"]:checked::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.7rem;
    color: white;
}

.forgot a {
    color: #00897b;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dashed #b2dfdb;
    transition: 0.2s;
    font-size: 0.8rem;
    cursor: pointer;
}

.forgot a:hover {
    color: #004d40;
    border-bottom: 1px solid #004d40;
}

.btn-login {
    width: 100%;
    padding: 0.8rem;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #26a69a, #00897b, #2e7d32);
    color: white;
    border: none;
    border-radius: 40px 10px 40px 10px;
    box-shadow: 0 12px 28px -10px #00897baa, 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.btn-login i {
    font-size: 1.3rem;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.1));
}

.btn-login:hover {
    transform: scale(1.02) translateY(-2px);
    background: linear-gradient(135deg, #2eccb0, #1a8b7a, #388e3c);
    box-shadow: 0 18px 32px -10px #00695c;
}

.btn-login:active {
    transform: scale(0.97);
}

.signup-link {
    text-align: center;
    margin-top: 1.6rem;
    font-size: 0.8rem;
    font-weight: 300;
    color: #00695c;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 40px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: 0.2s;
}

.signup-link:hover {
    background: rgba(255, 255, 255, 0.35);
}

.signup-link a {
    font-weight: 900;
    color: #00897b;
    text-decoration: none;
    margin-right: 0.2rem;
    font-size: 1rem;
    border-bottom: 1.5px solid #b2dfdb;
    transition: 0.2s;
    cursor: pointer;
}

.signup-link a:hover {
    color: #004d40;
    border-bottom-color: #00897b;
}

/* ===== استایل‌های ثبت‌نام ===== */
.register-hint {
    font-size: 0.7rem;
    color: #00796b;
    text-align: center;
    margin-top: -0.8rem;
    margin-bottom: 1.2rem;
    opacity: 0.8;
}

.btn-verify {
    width: 100%;
    padding: 0.8rem;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4db6ac, #00897b);
    color: white;
    border: none;
    border-radius: 40px 10px 40px 10px;
    box-shadow: 0 10px 24px -10px #00897baa, 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.btn-verify:hover {
    transform: scale(1.02) translateY(-2px);
    background: linear-gradient(135deg, #66c9bc, #1a8b7a);
    box-shadow: 0 16px 28px -10px #00695c;
}

.btn-verify i {
    font-size: 1.2rem;
}

.back-to-login {
    text-align: center;
    margin-top: 1.4rem;
    font-size: 0.75rem;
    color: #00695c;
    cursor: pointer;
    transition: 0.2s;
}

.back-to-login span {
    font-weight: 700;
    color: #00897b;
    border-bottom: 1px dashed #b2dfdb;
    transition: 0.2s;
    cursor: pointer;
}

.back-to-login span:hover {
    color: #004d40;
    border-bottom-color: #00897b;
}

/* ===== استایل‌های فراموشی رمز ===== */
.forgot-hint {
    font-size: 0.7rem;
    color: #00796b;
    text-align: center;
    margin-top: -0.8rem;
    margin-bottom: 1.2rem;
    opacity: 0.8;
    line-height: 1.6;
}

.btn-reset {
    width: 100%;
    padding: 0.8rem;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4db6ac, #00897b);
    color: white;
    border: none;
    border-radius: 40px 10px 40px 10px;
    box-shadow: 0 10px 24px -10px #00897baa, 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.btn-reset:hover {
    transform: scale(1.02) translateY(-2px);
    background: linear-gradient(135deg, #66c9bc, #1a8b7a);
    box-shadow: 0 16px 28px -10px #00695c;
}

.btn-reset i {
    font-size: 1.2rem;
}

/* ===== آیکون‌های تزیینی ===== */
.deco-icon {
    position: fixed;
    opacity: 0.06;
    color: #000;
    z-index: 0;
    pointer-events: none;
}
.deco-icon-1 {
    top: 4%;
    left: 3%;
    font-size: 4.5rem;
    transform: rotate(8deg);
}
.deco-icon-2 {
    bottom: 4%;
    right: 3%;
    font-size: 5rem;
    transform: rotate(-12deg);
}
.deco-icon-3 {
    top: 15%;
    right: 6%;
    font-size: 3.2rem;
    opacity: 0.04;
    transform: rotate(-6deg);
}
.deco-icon-4 {
    bottom: 18%;
    left: 5%;
    font-size: 3.8rem;
    opacity: 0.05;
    transform: rotate(15deg);
}

@media (max-width: 420px) {
    .page {
        padding: 1.5rem 1.2rem;
    }
    .login-header h1 {
        font-size: 1.8rem;
    }
    .btn-login,
    .btn-verify,
    .btn-reset {
        font-size: 1rem;
        padding: 0.7rem;
    }
    .card-container {
        min-height: 420px;
    }
    .card-wrapper {
        min-height: 420px;
    }
}

/* ------------------- برای طراحی نقاط متحرک پراکنده روی دکمه --------------- */
.vsl-btn {
    position: relative;
    overflow:hidden;
    transition: all 0.3s;
}
/* استایل نقاط (Particles) */
.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    pointer-events: none; /* از تداخل با موس جلوگیری می‌کند */
    z-index: 10;
}

.hidden {
    display: none;
}

.icon-circle-top{
    display:flex;
    justify-content:space-between;
    flex-direction:row;
    width:100%;
    color:#00695c;
    align-items:center;
}
.icon-circle-top .img {
    width: 60px;
    border-radius: 50px;
    margin-bottom:70px;
}
.icon-circle-top a {
    width:60px;
    color: #00897baa;
    margin-bottom:70px;
}
.icon-circle-top a i{
    font-size:1.4rem;
}
.icon-circle-top a:hover{
    cursor:pointer;
    color:#004d40;
}


/* =============================================
   استایل‌های جدید برای Captcha و OTP
   ============================================= */

/* Captcha */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.3rem;
}
.captcha-container img {
    border-radius: 10px;
    border: 2px solid #00897b;
    height: 55px;
    cursor: pointer;
    background: #fff;
    transition: 0.3s;
}
.captcha-container img:hover {
    opacity: 0.8;
}
.captcha-container input {
    flex: 1;
    min-width: 80px;
    text-align: center;
    font-size: 1.2rem;
    letter-spacing: 3px;
    padding: 0.5rem;
    border: 2px solid #b2dfdb;
    border-radius: 10px;
    background: rgba(255,255,255,0.7);
    transition: 0.3s;
}
.captcha-container input:focus {
    border-color: #00897b;
    box-shadow: 0 0 0 3px rgba(0,137,123,0.2);
    outline: none;
    background: #fff;
}
.captcha-container .refresh-btn {
    background: rgba(0,137,123,0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: #00897b;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.captcha-container .refresh-btn:hover {
    background: #00897b;
    color: #fff;
    transform: rotate(180deg);
}

/* OTP Inputs */
.otp-container {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    direction: ltr;
}
.otp-container input {
    width: 50px;
    height: 55px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px solid #b2dfdb;
    border-radius: 12px;
    background: rgba(255,255,255,0.7);
    transition: 0.3s;
    font-family: 'IRANSansX', sans-serif;
}
.otp-container input:focus {
    border-color: #00897b;
    box-shadow: 0 0 0 3px rgba(0,137,123,0.2);
    outline: none;
    background: #fff;
}
.otp-container input.filled {
    border-color: #00897b;
    background: #e8f5e9;
}

/* Timer */
.timer-text {
    color: #00695c;
    font-weight: 700;
    font-size: 0.9rem;
}
.timer-text .time {
    color: #c62828;
    font-size: 1.1rem;
    font-weight: 900;
}

/* OTP Actions */
.otp-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}
.otp-actions .btn {
    flex: 1;
}
.otp-actions .btn-outline {
    background: transparent;
    border: 2px solid #00897b;
    color: #00897b;
}
.otp-actions .btn-outline:hover {
    background: #00897b;
    color: #fff;
    transform: scale(1.02);
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.step-indicator .step {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #888;
    transition: all 0.3s;
}
.step-indicator .step.active {
    background: #00897b;
    color: #fff;
    transform: scale(1.1);
}
.step-indicator .step.completed {
    background: #4caf50;
    color: #fff;
}
.step-indicator .step-line {
    width: 30px;
    height: 2px;
    background: #e0e0e0;
}
.step-indicator .step-line.active {
    background: #00897b;
}

/* Toast Messages */
.toast-message {
    padding: 0.8rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    display: none;
    font-size: 0.85rem;
    font-weight: 500;
}
.toast-message.success {
    display: block;
    background: #e8f5e9;
    color: #2e7d32;
    border-right: 4px solid #4caf50;
}
.toast-message.error {
    display: block;
    background: #ffebee;
    color: #c62828;
    border-right: 4px solid #ef5350;
}
.toast-message.warning {
    display: block;
    background: #fff8e1;
    color: #e65100;
    border-right: 4px solid #ffb300;
}
.toast-message.info {
    display: block;
    background: #e3f2fd;
    color: #0d47a1;
    border-right: 4px solid #42a5f5;
}

/* Hidden utility */
.hidden {
    display: none !important;
}

/* Disabled buttons */
.vsl-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Responsive */
@media (max-width: 420px) {
    .otp-container input {
        width: 40px;
        height: 48px;
        font-size: 1.2rem;
    }
    .captcha-container img {
        height: 45px;
    }
    .captcha-container input {
        font-size: 1rem;
        min-width: 60px;
    }
    .step-indicator .step {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }
    .step-indicator .step-line {
        width: 20px;
    }
}