:root {
    --primary: #163e2c;
    --primary-light: #eaf1ed;
    --primary-soft: #f6faf7;
    --text: #1a2e1e;
    --muted: #6b8073;
    --surface: #ffffff;
    --border: #e2e8e4;
    --radius: 20px;
    --radius-sm: 14px;
    --shadow: 0 1px 2px rgba(22,62,44,0.04), 0 4px 16px rgba(22,62,44,0.06);
    --transition: all 0.2s ease;
}

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

body {
    font-family: 'shabnam', 'shabnam-en-num', 'Vazirmatn', Tahoma, sans-serif;
    background: #f9fbfa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    color: var(--text);
}

.page {
    width: 100%;
    max-width: 520px;
    margin-top: 11rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
    transition: var(--transition);
}
.back-btn:hover { color: var(--primary); gap: 10px; }
.back-btn i { font-size: 1.1rem; }

.card {
    margin-top: 60px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.8rem;
    box-shadow: var(--shadow);
}

.card-header {
    text-align: center;
    margin-bottom: 2rem;
}
.card-header .shield {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.8rem;
    background: var(--primary-soft);
    border: 1.5px solid #dce5df;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}
.card-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}
.card-header p {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.2rem;
}

.field {
    margin-bottom: 1.1rem;
}
.field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.3rem;
}
.field .req { color: #d63031; }

.field input,
.field select {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: #fafcfb;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.88rem;
    color: var(--text);
    outline: none;
    transition: var(--transition);
}
.field input:focus,
.field select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(22,62,44,0.05);
    background: #fff;
}
.field input::placeholder { color: #b8c7bd; }

.field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%236b8073'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 0.8rem center;
    cursor: pointer;
}

.field .help-block {
    font-size: 0.75rem;
    color: #d63031;
    margin-top: 0.2rem;
}

.hint {
    background: #fafdfb;
    border: 1px solid #e6ede8;
    border-radius: var(--radius-sm);
    padding: 0.8rem 1rem;
    margin: 1.2rem 0;
    font-size: 0.78rem;
    color: var(--muted);
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.hint i { font-size: 1rem; flex-shrink: 0; margin-top: 2px; }

.submit-btn {
    width: 100%;
    padding: 0.85rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.submit-btn:hover {
    background: #0f2f20;
    box-shadow: 0 6px 20px rgba(22,62,44,0.18);
    transform: translateY(-1px);
}

.card-footer {
    text-align: center;
    margin-top: 0.8rem;
    font-size: 0.72rem;
    color: var(--muted);
}
.card-footer a { color: var(--primary); text-decoration: none; font-weight: 600; }

@media (max-width: 480px) {
    body { padding: 0.8rem; }
    .card { padding: 1.5rem 1rem; border-radius: var(--radius-sm); }
    .card-header h2 { font-size: 1.1rem; }
    .field input, .field select { padding: 0.6rem 0.8rem; font-size: 0.82rem; }
}
