/* Public registration pages */

.reg-page {
    min-height: 100vh;
    min-height: 100dvh;
    background: linear-gradient(145deg, var(--ds-primary) 0%, var(--ds-secondary) 55%, #1e40af 100%);
    position: relative;
    overflow: hidden;
    padding: 2rem 1rem 3rem;
}

.reg-bg-shape {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    opacity: 0.08;
    pointer-events: none;
}

.reg-bg-shape-1 { width: 360px; height: 360px; top: -100px; right: -80px; }
.reg-bg-shape-2 { width: 280px; height: 280px; bottom: -60px; left: -60px; }

.reg-shell {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.reg-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.reg-back:hover { color: #fff; }

.reg-card {
    background: #fff;
    border-radius: 1.1rem;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
    padding: 1.75rem 1.5rem;
}

@media (min-width: 768px) {
    .reg-card { padding: 2rem 2.25rem; }
}

.reg-animate-in {
    animation: regFadeUp 0.45s ease both;
}

@keyframes regFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.reg-card-head {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.reg-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--ds-primary), var(--ds-secondary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.reg-icon-agent {
    background: linear-gradient(135deg, #7c3aed, #2563eb);
}

.reg-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
}

.reg-sub {
    color: #64748b;
    font-size: 0.92rem;
    margin: 0.35rem 0 0;
}

.reg-section {
    margin-bottom: 1.35rem;
}

.reg-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ds-primary);
    margin-bottom: 0.75rem;
}

.reg-section-title i { margin-right: 0.25rem; }

.reg-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.3rem;
}

.reg-input {
    border-radius: 0.55rem;
    border-color: #cbd5e1;
    padding: 0.55rem 0.75rem;
}

.reg-input:focus {
    border-color: var(--ds-secondary);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

.reg-note {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.65rem;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: #1e40af;
    margin-bottom: 1.25rem;
}

.reg-submit {
    padding: 0.65rem 1rem;
    font-weight: 700;
}

.reg-foot-links {
    font-size: 0.88rem;
    color: #64748b;
}

.reg-foot-links a {
    color: var(--ds-secondary);
    font-weight: 600;
    text-decoration: none;
}

.reg-foot-links a:hover { text-decoration: underline; }

.reg-success-card {
    max-width: 480px;
    padding: 2.5rem 2rem;
}

.reg-success-icon {
    font-size: 4rem;
    color: #22c55e;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.reg-success-page .reg-sub {
    color: #64748b;
}

.adm-table-card .table th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.adm-table-card .table td {
    font-size: 0.92rem;
}

/* Admin — school delete confirmation */
.adm-delete-page {
    max-width: 1100px;
    margin: 0 auto;
}

.adm-delete-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    color: #64748b;
    text-decoration: none;
    margin-bottom: 1.25rem;
}

.adm-delete-back:hover {
    color: #1e3a8a;
}

.adm-delete-hero {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 100%);
    border: 1px solid #fecaca;
}

.adm-delete-hero-icon {
    font-size: 2rem;
    color: #dc2626;
    line-height: 1;
    flex-shrink: 0;
}

.adm-delete-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #991b1b;
    margin-bottom: 0.35rem;
}

.adm-delete-sub {
    font-size: 0.9rem;
    color: #7f1d1d;
}

.adm-delete-school-card,
.adm-delete-form-card {
    border-radius: 14px;
}

.adm-delete-total-badge {
    text-align: center;
    padding: 0.75rem 1.1rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    min-width: 110px;
}

.adm-delete-total-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.adm-delete-total-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    font-weight: 600;
}

.adm-delete-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.adm-delete-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.adm-delete-stat-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.adm-delete-stat-num {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.adm-delete-stat-label {
    font-size: 0.75rem;
    color: #64748b;
}

.adm-delete-warn {
    padding: 1rem 1.15rem;
    border-radius: 12px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.adm-delete-warn ul {
    padding-left: 1.15rem;
}

.adm-delete-code-input {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.adm-delete-check {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.adm-delete-submit {
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 10px;
}

.adm-delete-submit:disabled {
    opacity: 0.55;
}

/* Admin user management */
.adm-user-stat .card-body {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.adm-user-stat-icon {
    font-size: 1.5rem;
    width: 2.5rem;
    text-align: center;
}

.adm-user-stat-num {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
}

.adm-user-stat-label {
    font-size: 0.78rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 600;
}

.adm-user-tab.active {
    background: var(--ds-primary, #4f46e5);
    border-color: var(--ds-primary, #4f46e5);
    color: #fff;
}

.adm-user-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: #eef2ff;
    color: var(--ds-primary, #4f46e5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.adm-user-avatar-lg {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: #eef2ff;
    color: var(--ds-primary, #4f46e5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.adm-user-type-card {
    display: block;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    height: 100%;
}

.adm-user-type-card:hover {
    border-color: #c7d2fe;
    background: #f8fafc;
}

.adm-user-type-card.is-selected {
    border-color: var(--ds-primary, #4f46e5);
    background: #eef2ff;
}

.adm-user-type-icon {
    font-size: 1.5rem;
    color: var(--ds-primary, #4f46e5);
    margin-bottom: 0.5rem;
    display: block;
}

.adm-role-card {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    margin-bottom: 0;
    height: 100%;
}

.adm-role-card:hover {
    border-color: #c7d2fe;
}

.adm-role-card.is-selected {
    border-color: var(--ds-primary, #4f46e5);
    background: #eef2ff;
}

.adm-role-guide-item {
    padding-left: 0.75rem;
    border-left: 3px solid #e2e8f0;
}

.adm-update-card .adm-update-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.adm-update-drop {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 2rem 1rem;
    text-align: center;
    background: #f8fafc;
    transition: border-color 0.15s, background 0.15s;
    cursor: pointer;
}

.adm-update-drop:hover,
.adm-update-drop.drag-over,
.adm-update-drop.has-file {
    border-color: var(--ds-primary, #4f46e5);
    background: #eef2ff;
}

.adm-update-drop-label {
    cursor: pointer;
    display: block;
}

.adm-update-check {
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.adm-update-warn {
    padding: 0.75rem 1rem;
    background: #f0fdf4;
    border-radius: 10px;
    border: 1px solid #bbf7d0;
}

.auth-register-links {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
    margin-top: 1rem;
    text-align: center;
    font-size: 0.88rem;
}

.auth-register-links a {
    color: var(--ds-secondary);
    font-weight: 600;
    text-decoration: none;
}

.auth-register-links a:hover { text-decoration: underline; }

.auth-register-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.65rem;
}

.auth-register-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border-radius: 2rem;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: background 0.15s, border-color 0.15s;
}

.auth-register-pill:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: var(--ds-primary);
}
