/* ------------------------------
   ریست پایه
--------------------------------*/
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

/* ------------------------------
   فونت داخلی IRANSansDN
--------------------------------*/
@font-face {
    font-family: 'iranyekan';
    src: url('../fonts/IRANSansDN-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

/* ------------------------------
   بدنه
--------------------------------*/
body {
    background: #0a0f1f;
    font-family: 'iranyekan', sans-serif;
    color: #fff;
    overflow: hidden; /* حذف اسکرول */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ------------------------------
   هدر برند (لوگو + متن)
--------------------------------*/
.auth-header {
    margin-top: 40px;
    text-align: center;
}

.brand-logo-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #22d3ee, #1e40af);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px auto;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.6);
}

.brand-logo-letter {
    font-size: 28px;
    font-weight: bold;
    color: #e5f2ff;
}

.brand-title {
    font-size: 20px;
    font-weight: bold;
}

.brand-subtitle {
    font-size: 13px;
    opacity: 0.7;
    margin-top: 3px;
}

/* ------------------------------
   کانتینر اصلی
--------------------------------*/
.auth-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* ------------------------------
   کارت شیشه‌ای
--------------------------------*/
.auth-card {
    width: 360px;
    background: rgba(255,255,255,0.06);
    padding: 35px;
    border-radius: 18px;
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 0 35px rgba(0,255,255,0.15);
    animation: fadeIn 0.5s ease;
}

/* انیمیشن ورود */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ------------------------------
   تیترها
--------------------------------*/
.auth-title {
    font-size: 24px;
    margin-bottom: 8px;
    text-align: center;
}

.auth-sub {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 25px;
    text-align: center;
}

/* ------------------------------
   لیبل و ورودی
--------------------------------*/
.auth-label {
    font-size: 14px;
    margin-bottom: 6px;
    display: block;
}

.auth-input {
    width: 100%;
    padding: 13px;
    border-radius: 10px;
    border: none;
    margin-bottom: 18px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 15px;
    transition: 0.2s;
}

.auth-input:focus {
    outline: none;
    background: rgba(255,255,255,0.18);
    box-shadow: 0 0 10px rgba(0,150,255,0.4);
}

/* ------------------------------
   دکمه اصلی
--------------------------------*/
.auth-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #1e90ff, #00c6ff);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}

.auth-btn:hover {
    background: linear-gradient(135deg, #0f7ae5, #00a4dd);
    transform: translateY(-2px);
}

/* ------------------------------
   قوانین و مقررات
--------------------------------*/
.rules {
    font-size: 13px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.rules input[type="checkbox"] {
    accent-color: #1e90ff;
}

.rules a {
    color: #00c6ff;
    text-decoration: none;
    font-weight: bold;
}

/* ------------------------------
   پیام خطا و موفقیت
--------------------------------*/
.auth-error, .auth-success {
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 18px;
    text-align: center;
    font-size: 14px;
}

.auth-error {
    background: rgba(255, 60, 60, 0.85);
}

.auth-success {
    background: rgba(40, 199, 111, 0.85);
}

/* ------------------------------
   ارسال مجدد کد
--------------------------------*/
.resend-box {
    margin-top: 18px;
    text-align: center;
    font-size: 14px;
    opacity: 0.9;
}

#resendBtn {
    background: none;
    border: none;
    color: #1e90ff;
    cursor: pointer;
    font-size: 14px;
    margin-top: 8px;
}

#resendBtn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
