/* Global layout and background */
:root {
    --brand-primary: #5b47fb;
    --brand-primary-dark: #4a39d0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    background: url("../img/bkgd.png") no-repeat center center fixed;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111827;
}

.overlay {
    background: rgba(0, 0, 0, 0.55);
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.app-container {
    width: 100%;
    max-width: 1100px;
}

/* Cards */
.card,
.auth-card {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.45);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.auth-card {
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
}

.hero-card {
    background: rgba(91, 71, 251, 0.9);
    border-radius: 18px;
}

/* Forms */
.form-control,
.form-select,
textarea.form-control {
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background-color: #f9fafb;
    padding: 0.625rem 0.875rem;
    font-size: 0.95rem;
    width: 100%;
    max-width: 420px;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    border-color: var(--brand-primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(91, 71, 251, 0.1);
    outline: none;
}

label.form-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Buttons / brand colors */
.btn {
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.625rem 1.25rem;
    transition: all 0.2s ease;
    border: none;
}

.btn-success,
.btn-primary {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #ffffff;
}

.btn-success:hover,
.btn-success:focus,
.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--brand-primary-dark);
    border-color: var(--brand-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 71, 251, 0.3);
}

.btn-outline-success {
    color: var(--brand-primary);
    border: 1.5px solid var(--brand-primary);
    background-color: transparent;
}

.btn-outline-success:hover,
.btn-outline-success:focus {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 71, 251, 0.3);
}

.btn-secondary {
    background-color: #6b7280;
    border-color: #6b7280;
    color: #ffffff;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #4b5563;
    border-color: #4b5563;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline-secondary {
    color: #6b7280;
    border: 1.5px solid #e5e7eb;
    background-color: transparent;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background-color: #f3f4f6;
    border-color: #d1d5db;
    color: #374151;
}

/* Wizard steps */
.step {
    display: none;
}

.step.active {
    display: block;
}

/* Progress bar styling */
.progress {
    background-color: rgba(255, 255, 255, 0.4);
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
}

#progressBar {
    border-radius: 999px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

/* Progress text */
#progressText {
    min-width: 3rem;
    text-align: right;
    font-size: 0.8rem;
    font-weight: 600;
    color: #f9fafb;
}

/* Small utility tweaks */
.small {
    font-size: 0.8rem;
}

/* Dashboard / topbar */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
}

.topbar-title {
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.topbar-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.topbar-nav a {
    color: #e5e7eb;
    text-decoration: none;
    font-size: 0.85rem;
}

.topbar-nav a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Registration wizard card */
.wizard-card {
    max-width: 780px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.wizard-card .card-body {
    padding: 2.5rem;
}

.wizard-card .form-control,
.wizard-card .form-select,
.wizard-card textarea.form-control {
    background-color: #f9fafb;
}

.wizard-card h4 {
    color: #111827;
    font-weight: 600;
}

.wizard-card h6 {
    color: #374151;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Table styling */
.wizard-card table {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.wizard-card table th {
    background-color: #f3f4f6;
    color: #374151;
    font-weight: 600;
    border-color: #e5e7eb;
    padding: 0.75rem;
}

.wizard-card table td {
    padding: 0.75rem;
    border-color: #e5e7eb;
}

.wizard-card table input,
.wizard-card table select {
    font-size: 0.9rem;
}

/* Auth split layout (login/admin) */
.auth-split {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.auth-left,
.auth-right {
    padding: 2.25rem 2rem;
}

.auth-left {
    flex: 0 0 50%;
    max-width: 50%;
    background: #ffffff;
    color: #111827;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.auth-left img {
    max-width: 170px;
    height: auto;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.auth-left-title {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #111827;
}

.auth-left-subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
}

.auth-right {
    flex: 0 0 50%;
    max-width: 50%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-right h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.auth-right p {
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .auth-left,
    .auth-right {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 1.75rem 1.5rem;
    }

    .auth-left {
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }
}

