* { box-sizing: border-box; }
body {
    margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center;
    font-family: Vazirmatn, Tahoma, Arial, sans-serif; padding: 16px;
    background: linear-gradient(135deg, #0f172a 0%, #312e81 55%, #065f46 100%);
}
.card {
    width: 100%; max-width: 400px; background: #fff; border-radius: 24px; padding: 28px 24px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,.45);
}
.brand { text-align: center; margin-bottom: 20px; }
.logo {
    width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 18px; font-size: 28px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #6366f1, #10b981);
}
.brand h1 { margin: 0; font-size: 20px; font-weight: 800; color: #1e293b; }
.brand p { margin: 4px 0 0; font-size: 13px; color: #64748b; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: #f1f5f9; padding: 4px; border-radius: 14px; margin-bottom: 18px; }
.tabs button { border: 0; background: transparent; padding: 9px; border-radius: 10px; font: inherit; font-weight: 700; color: #475569; cursor: pointer; }
.tabs button.active { background: #fff; color: #4338ca; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
form { display: flex; flex-direction: column; gap: 12px; }
label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 700; color: #334155; }
label[hidden] { display: none; }
input {
    font: inherit; font-weight: 500; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc;
}
input:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.2); }
.primary {
    width: 100%; border: 0; border-radius: 12px; padding: 11px; font: inherit; font-weight: 800; font-size: 15px;
    background: #4f46e5; color: #fff; cursor: pointer; margin-top: 4px;
}
.primary:hover { background: #4338ca; }
.primary:disabled { opacity: .6; cursor: wait; }
.msg { margin: 0; min-height: 18px; font-size: 13px; font-weight: 700; color: #e11d48; }
.hint { font-size: 13px; line-height: 1.9; color: #475569; text-align: center; margin: 14px 0; }
