
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: #1a1a1a;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    direction: rtl;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(255,140,0,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 440px;
    padding: 20px;
}

.card {
    background: #242424;
    border-radius: 20px;
    padding: 40px 36px;
    border: 1px solid rgba(255,140,0,0.2);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(255,140,0,0.05);
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo .icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #ff8c00, #ff6000);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 12px;
    box-shadow: 0 8px 24px rgba(255,140,0,0.3);
}

.logo h1 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
}

.logo p {
    color: #888;
    font-size: 13px;
    margin-top: 4px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    color: #ccc;
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: #1a1a1a;
    border: 1.5px solid #333;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-family: 'Vazirmatn', sans-serif;
    transition: all 0.3s;
    outline: none;
}

.form-group input:focus {
    border-color: #ff8c00;
    box-shadow: 0 0 0 3px rgba(255,140,0,0.15);
}

.form-group input::placeholder {
    color: #555;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.captcha-row img {
    border-radius: 8px;
    border: 1.5px solid #333;
    cursor: pointer;
    transition: border-color 0.3s;
    height: 50px;
}

.captcha-row img:hover {
    border-color: #ff8c00;
}

.captcha-row input {
    flex: 1;
}

.refresh-btn {
    background: none;
    border: 1.5px solid #333;
    color: #888;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    white-space: nowrap;
}

.refresh-btn:hover {
    border-color: #ff8c00;
    color: #ff8c00;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ff8c00, #ff6000);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Vazirmatn', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
    box-shadow: 0 4px 20px rgba(255,140,0,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255,140,0,0.45);
}

.btn-primary:active {
    transform: translateY(0);
}

.divider {
    text-align: center;
    margin: 20px 0;
    color: #555;
    font-size: 13px;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 38%;
    height: 1px;
    background: #333;
}

.divider::before { right: 0; }
.divider::after  { left: 0; }

.link-text {
    text-align: center;
    color: #888;
    font-size: 13px;
}

.link-text a {
    color: #ff8c00;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.link-text a:hover {
    color: #ffaa33;
}

.alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 18px;
    font-weight: 600;
}

.alert-error {
    background: rgba(220,53,69,0.15);
    border: 1px solid rgba(220,53,69,0.3);
    color: #ff6b7a;
}

.alert-success {
    background: rgba(40,167,69,0.15);
    border: 1px solid rgba(40,167,69,0.3);
    color: #5cb85c;
}

/* Dashboard */
.dashboard-card {
    background: #242424;
    border-radius: 20px;
    padding: 40px 36px;
    border: 1px solid rgba(255,140,0,0.2);
    text-align: center;
    max-width: 500px;
}

.dashboard-card h2 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 10px;
}

.dashboard-card p {
    color: #888;
    margin-bottom: 24px;
}

.user-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255,140,0,0.2), rgba(255,96,0,0.2));
    border: 1px solid rgba(255,140,0,0.4);
    color: #ff8c00;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.btn-logout {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    border: 1.5px solid #ff8c00;
    border-radius: 10px;
    color: #ff8c00;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Vazirmatn', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: rgba(255,140,0,0.1);
}
