:root {
    --primary: #1c3664;
    --primary-light: #e8edf7;
    --primary-lighter: #f5f7fb;
    --primary-dark: #142a4d;
    --error: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
}

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

body {
    font-family: "Vazirmatn", sans-serif;
    background-color: var(--primary-lighter);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    line-height: 1.6;
}

.register-container {
    max-width: 32rem;
    width: 100%;
    margin: 0 auto;
}

.register-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    padding: 2rem;
}

.form-input {
    transition: all 0.2s ease;
    border: 1px solid var(--gray-300);
    background-color: white;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-family: inherit;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
    outline: none;
}

.form-input.error {
    border-color: var(--error);
}

.form-select {
    transition: all 0.2s ease;
    border: 1px solid var(--gray-300);
    background-color: white;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    font-family: inherit;
}

.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
    outline: none;
}

.btn-primary {
    background-color: var(--primary);
    transition: all 0.2s ease;
    color: white;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-family: inherit;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--gray-200);
    transition: all 0.2s ease;
    color: var(--gray-700);
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-family: inherit;
    white-space: nowrap;
}

.btn-secondary:hover {
    background-color: var(--gray-300);
}

.btn-secondary:disabled {
    background-color: var(--gray-100);
    color: var(--gray-400);
    cursor: not-allowed;
}

.footer-link {
    color: var(--primary);
    transition: all 0.2s ease;
    text-decoration: none;
}

.footer-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.error-message {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--error);
}

.alert-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    border-right: 4px solid #ef4444;
}

.alert-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    border-right: 4px solid #22c55e;
}

.alert-warning {
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    border-right: 4px solid #f59e0b;
}

.radio-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.radio-input {
    width: 1rem;
    height: 1rem;
}

.login-section {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
    font-size: 0.875rem;
}

.login-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.login-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .form-full-width {
        grid-column: 1 / -1;
    }
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
}

.required-field::after {
    content: " *";
    color: var(--error);
}

.logo {
    height: 32px;
    width: auto;
    margin-bottom: 1rem;
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.hidden {
    display: none;
}

.phone-input-group {
    display: flex;
    gap: 0.5rem;
}

.phone-input {
    flex: 1;
}

.verification-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.verification-input {
    flex: 1;
}

.timer {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
    text-align: center;
}

.resend-link {
    color: var(--primary);
    cursor: pointer;
    font-size: 0.75rem;
    text-decoration: none;
}

.resend-link:hover {
    text-decoration: underline;
}

.resend-link:disabled {
    color: var(--gray-400);
    cursor: not-allowed;
}

.notification-container {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
    margin: 0 auto;
}

.notification {
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification.success {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1px solid #bbf7d0;
    color: #166534;
    border-right: 4px solid #22c55e;
}

.notification.error {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-right: 4px solid #ef4444;
}

.notification.warning {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #fde68a;
    color: #92400e;
    border-right: 4px solid #f59e0b;
}

.notification-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
    font-size: 0.875rem;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

.notification.hide {
    animation: slideOut 0.3s ease-in forwards;
}
