/* * Login Page Styles
 * Path: assets/css/login.css
 */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

:root {
    --bg-dark: #17212b;
    --card-bg: rgba(36, 47, 61, 0.85);
    --accent: #40a7e3; /* Telegram Blue */
    --accent-hover: #2f8cc2;
    --text-main: #ffffff;
    --text-muted: #7d8b99;
    --input-bg: #1d2836;
    --border: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; }

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--bg-dark);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: var(--text-main);
    direction: rtl;
}

/* Background Animation */
.bg-animation {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #1e2c3b 0%, #0e1621 100%);
}
.bg-animation::after {
    content: '';
    position: absolute;
    width: 200%; height: 200%;
    top: -50%; left: -50%;
    background-image: radial-gradient(2px 2px at 50% 50%, rgba(255,255,255,0.1) 0%, transparent 100%);
    background-size: 50px 50px;
    animation: stars 60s linear infinite;
    opacity: 0.3;
}
@keyframes stars { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Card Container */
.auth-card {
    width: 100%;
    max-width: 380px;
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Steps Transition */
.step { display: none; opacity: 0; transition: opacity 0.3s ease; }
.step.active { display: block; animation: slideUp 0.4s forwards; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Graphics */
.icon-container {
    width: 80px; height: 80px;
    background: var(--accent);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px; color: white;
    box-shadow: 0 10px 25px rgba(64, 167, 227, 0.3);
}

h2 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
p.desc { color: var(--text-muted); font-size: 13px; margin-bottom: 30px; line-height: 1.6; }

/* Inputs */
.input-group { position: relative; margin-bottom: 20px; text-align: right; }
.input-group label {
    font-size: 12px; color: var(--accent);
    margin-bottom: 6px; display: block; font-weight: 500;
}

input {
    width: 100%;
    padding: 14px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: white;
    font-size: 15px;
    font-family: inherit;
    transition: 0.3s;
}

input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(64, 167, 227, 0.15);
}

/* Phone Input Specifics */
input[type="tel"] { letter-spacing: 2px; text-align: center; font-weight: bold; }
input.otp-input { letter-spacing: 12px; text-align: center; font-size: 20px; font-weight: bold; }

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-primary:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.btn-link {
    background: none; border: none;
    color: var(--text-muted);
    font-size: 12px; cursor: pointer;
    margin-top: 15px;
    transition: color 0.2s;
}
.btn-link:hover { color: var(--accent); }

/* Message Box */
.msg-box {
    margin-top: 15px;
    min-height: 20px;
    font-size: 13px;
    color: #e53935;
}

.highlight { color: var(--text-main); font-weight: bold; }