/* 
 * ==========================================
 * TenantMaster Registration UI Design System
 * Modern Glassmorphism & Cyber-Indigo Theme
 * ==========================================
 */

.register-container {
    /* Color Palette */
    --bg-dark: #07070b;
    --bg-dark-gradient: radial-gradient(circle at 50% 50%, #151030 0%, #07070d 70%, #030305 100%);
    --primary: #6366f1;
    /* Deep Indigo */
    --primary-rgb: 99, 102, 241;
    --accent: #06b6d4;
    /* Neon Cyan */
    --accent-rgb: 6, 182, 212;
    --accent-glow: rgba(6, 182, 212, 0.2);
    --primary-glow: rgba(99, 102, 241, 0.15);

    /* Neutral Shades */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;

    /* Glassmorphism Specs */
    --glass-bg: rgba(13, 20, 48, 0.75);
    --glass-border: rgba(0, 240, 255, 0.18);
    --glass-border-focus: rgba(6, 182, 212, 0.4);
    --glass-shine: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);

    /* System Status */
    --success: #10b981;
    /* Emerald */
    --success-rgb: 16, 185, 129;
    --error: #f43f5e;
    /* Rose Crimson */
    --error-rgb: 244, 63, 94;
    --warning: #f59e0b;
    /* Amber */
    --warning-rgb: 245, 158, 11;

    /* Layout & Shadow */
    --card-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8), 0 0 50px -10px rgba(99, 102, 241, 0.15);
    --font-primary: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    --font-secondary: 'Public Sans', sans-serif;
}

/* --- Base & Scrollbar --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Ensure all layout wrappers are transparent to show fixed body background */
::deep .app-container,
::deep .main-content,
::deep .page,
.page {
    background: transparent !important;
    background-color: transparent !important;
}

body:has(.register-container),
body.register-page {
    font-family: var(--font-primary, 'Outfit', 'Inter', system-ui, sans-serif);
    min-height: 100vh !important;
    height: auto !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    transition: background 0.45s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Body Background */
body:has(.register-container.light-theme),
body.register-page.light-theme,
html.light-theme body:has(.register-container) {
    background: #f1f5f9 !important;
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

/* Dark Theme Body Background (Default when not light-theme) */
body:has(.register-container.dark-theme),
body:has(.register-container:not(.light-theme)),
body.register-page:not(.light-theme),
html.dark-mode body:has(.register-container),
html.dark-theme body:has(.register-container) {
    background: radial-gradient(circle at 50% 50%, #151030 0%, #07070d 70%, #030305 100%) !important;
    background-attachment: fixed !important;
    background-color: #07070b !important;
    color: #f8fafc !important;
}

/* Theme CSS Variables for Dark Theme */
.register-container,
.register-container.dark-theme {
    --bg-dark: #07070b;
    --bg-dark-gradient: radial-gradient(circle at 50% 50%, #151030 0%, #07070d 70%, #030305 100%);
    --primary: #6366f1;
    --primary-rgb: 99, 102, 241;
    --accent: #06b6d4;
    --accent-rgb: 6, 182, 212;
    --accent-glow: rgba(6, 182, 212, 0.2);
    --primary-glow: rgba(99, 102, 241, 0.15);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;
    --glass-bg: rgba(13, 20, 48, 0.85);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-border-focus: rgba(6, 182, 212, 0.45);
    --card-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8), 0 0 50px -10px rgba(99, 102, 241, 0.15);
}

/* Theme CSS Variables for Light Theme */
.register-container.light-theme {
    --bg-dark: #f1f5f9;
    --bg-dark-gradient: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    --primary: #2563eb;
    --primary-rgb: 37, 99, 235;
    --accent: #0284c7;
    --accent-rgb: 2, 132, 199;
    --accent-glow: rgba(37, 99, 235, 0.15);
    --primary-glow: rgba(37, 99, 235, 0.15);
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-dark: #0f172a;
    --glass-bg: #ffffff;
    --glass-border: #e2e8f0;
    --glass-border-focus: rgba(37, 99, 235, 0.4);
    --card-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.08), 0 0 1px 1px rgba(0, 0, 0, 0.04);
}

.register-container.light-theme .form-control,
.register-container.light-theme ::deep .form-control,
.register-container.light-theme input.form-control,
.register-container.light-theme select.form-control {
    background-color: #ffffff !important;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
    font-weight: 500;
}

.register-container.light-theme .form-control:focus,
.register-container.light-theme ::deep .form-control:focus,
.register-container.light-theme input.form-control:focus,
.register-container.light-theme select.form-control:focus {
    border-color: #6366f1 !important;
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15) !important;
}

.register-container.light-theme .form-control::placeholder,
.register-container.light-theme ::deep .form-control::placeholder {
    color: #94a3b8 !important;
    font-style: italic;
    opacity: 1 !important;
}

/* Fix browser autofill background glitch */
.register-container.light-theme input.form-control:-webkit-autofill,
.register-container.light-theme input.form-control:-webkit-autofill:hover,
.register-container.light-theme input.form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: #0f172a !important;
    -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

.register-container.light-theme .form-label {
    color: #334155 !important;
    font-weight: 700;
}

.register-container.light-theme .section-title h3 {
    color: #1e293b !important;
}

.register-container.light-theme .section-title {
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.register-container.light-theme .modal-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.2), 0 0 40px rgba(99, 102, 241, 0.1) !important;
}

.register-container.light-theme .modal-title {
    background: linear-gradient(135deg, #0f172a, #ff007f) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.register-container.light-theme .security-reqs {
    background: rgba(0, 0, 0, 0.02) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.register-container.light-theme .security-reqs h4 {
    color: #0f172a !important;
}

/* Custom Scrollbar for sleek appearance */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(7, 7, 11, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* --- App Root Container --- */
.page {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

main {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 1rem;
    z-index: 10;
}

/* --- Animated Glowing Background Elements --- */
.register-container {
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100vh !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0.75rem 1rem !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Ambient glow blobs */
.register-container::before,
.register-container::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.45;
    mix-blend-mode: screen;
    animation: pulse-glow 15s infinite alternate ease-in-out;
}

.register-container::before {
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, var(--primary) 0%, rgba(99, 102, 241, 0) 70%);
    top: -10%;
    left: -15%;
}

.register-container::after {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--accent) 0%, rgba(6, 182, 212, 0) 70%);
    bottom: -15%;
    right: -20%;
    animation-delay: -5s;
}

@keyframes pulse-glow {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(40px, -30px) scale(1.1);
    }
}

/* Background decorator icon */
.bg-decorator {
    position: absolute;
    bottom: -2%;
    left: -8%;
    color: rgba(99, 102, 241, 0.04);
    pointer-events: none;
    user-select: none;
    z-index: -1;
}

.bg-decorator span {
    font-size: 15rem;
    transform: rotate(-15deg);
    display: block;
}

/* --- Frosted Glass Card --- */
.register-card {
    width: 100%;
    max-width: 1140px;
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    overflow: hidden;
    position: relative;
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

/* --- Modern Grid Layout for Single Page Display --- */
.registration-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    position: relative;
}

/* Vertical Divider */
.registration-grid::after {
    content: '';
    position: absolute;
    top: 5%;
    bottom: 5%;
    left: 50%;
    width: 1px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.06) 20%, rgba(255, 255, 255, 0.06) 80%, rgba(255, 255, 255, 0) 100%);
    transform: translateX(-50%);
}

.registration-column {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* Glassmorphic Password Modal Popup styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 4, 15, 0.65);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: modal-fade-in 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-card {
    width: 100%;
    max-width: 500px;
    background: rgba(13, 12, 29, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), 0 0 50px rgba(99, 102, 241, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    position: relative;
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: modal-scale-up 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.modal-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 1rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-subtitle {
    font-family: var(--font-secondary);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.25rem;
    margin-top: 0.5rem;
}

@keyframes modal-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modal-scale-up {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(15px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.register-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 28px;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02) 40%, rgba(6, 182, 212, 0.1) 70%, rgba(6, 182, 212, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
}

/* --- Card Header & Progress Tracker --- */
.card-header {
    padding: 0.75rem 1.5rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.step-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.7rem;
    padding: 0.25rem 0.65rem;
    border-radius: 30px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.step-badge.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--text-dark);
    font-weight: 800;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
    border-color: transparent;
}

.step-text {
    font-family: var(--font-secondary);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 10px;
    box-shadow: 0 0 10px var(--accent);
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Alert Block --- */
.alert {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    animation: slide-down 0.4s ease forwards;
}

.alert-error {
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: #fda4af;
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.1);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #a7f3d0;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.1);
}

@keyframes slide-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Card Body --- */
.card-body {
    padding: 0.75rem 1.5rem 0.65rem;
}

.page-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #ffffff !important;
    margin-bottom: 0.15rem;
    line-height: 1.2;
}

.page-subtitle {
    font-family: var(--font-secondary);
    color: var(--text-muted);
    font-size: 0.76rem;
    margin-bottom: 0.15rem;
    line-height: 1.2;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title span {
    color: var(--accent);
    font-size: 1rem;
    text-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
}

.section-title h3 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #f1f5f9;
}

/* --- Form Layout & Fields --- */
.form-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0.45rem 0.85rem;
}

.form-group {
    grid-column: span 6;
    /* 2-column by default */
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.form-group.full-width {
    grid-column: span 12;
}

/* Form Label */
.form-label {
    font-family: var(--font-secondary);
    font-size: 0.72rem;
    font-weight: 600;
    color: #cbd5e1;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    margin-bottom: 2px;
    line-height: 1.2;
}

.lbl-req::after {
    content: '*';
    color: var(--error);
    font-weight: bold;
    margin-left: 2px;
}

.optional {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Form Control Inputs */
.form-control,
::deep .form-control,
.register-container input.form-control,
.register-container select.form-control,
.register-container .form-select-wrapper select {
    width: 100% !important;
    height: 33px !important;
    min-height: 33px !important;
    max-height: 33px !important;
    border-radius: 6px !important;
    padding: 0.3rem 0.65rem !important;
    font-family: var(--font-primary);
    font-size: 0.79rem !important;
    line-height: 1.3 !important;
    outline: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-control::placeholder,
::deep .form-control::placeholder {
    color: #94a3b8 !important;
    font-weight: 300;
}

.register-container.light-theme .form-control:hover,
.register-container.light-theme ::deep .form-control:hover {
    border-color: #94a3b8 !important;
    background: #ffffff !important;
}

.register-container.light-theme .form-control:focus,
.register-container.light-theme ::deep .form-control:focus {
    border-color: #2563eb !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15) !important;
    color: #0f172a !important;
}

.register-container:not(.light-theme) .form-control:hover,
.register-container.dark-theme .form-control:hover,
.register-container:not(.light-theme) ::deep .form-control:hover,
.register-container.dark-theme ::deep .form-control:hover {
    border-color: rgba(255, 255, 255, 0.3) !important;
    background: rgba(13, 12, 29, 0.75) !important;
}

.register-container:not(.light-theme) .form-control:focus,
.register-container.dark-theme .form-control:focus,
.register-container:not(.light-theme) ::deep .form-control:focus,
.register-container.dark-theme ::deep .form-control:focus {
    border-color: #06b6d4 !important;
    background: rgba(13, 12, 29, 0.9) !important;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.2) !important;
    color: #ffffff !important;
}

/* Form Select Styling */
.form-select-wrapper {
    position: relative;
    width: 100%;
}

::deep .form-select-wrapper select.form-control,
.form-select-wrapper ::deep select.form-control,
::deep select.form-control,
.form-select-wrapper select.form-control,
.form-select-wrapper select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    padding-right: 2.5rem !important;
    cursor: pointer;
}

/* Dark Mode Select Dropdowns (Business Type, Timezone, Currency) */
.register-container:not(.light-theme) select.form-control,
.register-container.dark-theme select.form-control,
.register-container:not(.light-theme) .form-select-wrapper select,
.register-container.dark-theme .form-select-wrapper select,
.register-container:not(.light-theme) .form-select-wrapper select.form-control,
.register-container.dark-theme .form-select-wrapper select.form-control,
.register-container:not(.light-theme) ::deep select.form-control,
.register-container.dark-theme ::deep select.form-control {
    background-color: rgba(13, 12, 29, 0.6) !important;
    background: rgba(13, 12, 29, 0.6) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
    color: #f8fafc !important;
    background-image: none !important;
}

.register-container:not(.light-theme) select.form-control:hover,
.register-container.dark-theme select.form-control:hover,
.register-container:not(.light-theme) .form-select-wrapper select:hover,
.register-container.dark-theme .form-select-wrapper select:hover {
    background-color: rgba(13, 12, 29, 0.75) !important;
    background: rgba(13, 12, 29, 0.75) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.register-container:not(.light-theme) select.form-control:focus,
.register-container.dark-theme select.form-control:focus,
.register-container:not(.light-theme) .form-select-wrapper select:focus,
.register-container.dark-theme .form-select-wrapper select:focus {
    background-color: rgba(13, 12, 29, 0.9) !important;
    background: rgba(13, 12, 29, 0.9) !important;
    border-color: #06b6d4 !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.2) !important;
}

/* Light Mode Select Dropdowns */
.register-container.light-theme select.form-control,
.register-container.light-theme .form-select-wrapper select,
.register-container.light-theme .form-select-wrapper select.form-control,
.register-container.light-theme ::deep select.form-control {
    background-color: #ffffff !important;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
}

.register-container.light-theme select.form-control:hover,
.register-container.light-theme .form-select-wrapper select:hover {
    border-color: #94a3b8 !important;
}

.register-container.light-theme select.form-control:focus,
.register-container.light-theme .form-select-wrapper select:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15) !important;
    color: #0f172a !important;
}

.form-select-wrapper::after {
    content: '\e5cf';
    font-family: 'Material Icons Outlined' !important;
    font-weight: normal !important;
    font-style: normal !important;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    font-size: 1.25rem;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none !important;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    transition: color 0.3s;
}

.register-container:not(.light-theme) .form-select-wrapper::after,
.register-container.dark-theme .form-select-wrapper::after {
    color: #94a3b8 !important;
}

.register-container:not(.light-theme) .form-select-wrapper:focus-within::after,
.register-container.dark-theme .form-select-wrapper:focus-within::after {
    color: #06b6d4 !important;
}

.register-container.light-theme .form-select-wrapper::after {
    color: #64748b !important;
}

.register-container.light-theme .form-select-wrapper:focus-within::after {
    color: #2563eb !important;
}

.register-container.light-theme select.form-control option,
.register-container.light-theme ::deep select option,
.register-container.light-theme ::deep option {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    padding: 10px;
}

.register-container:not(.light-theme) select.form-control option,
.register-container.dark-theme select.form-control option,
.register-container:not(.light-theme) ::deep select option,
.register-container.dark-theme ::deep select option {
    background: #0d1430 !important;
    background-color: #0d1430 !important;
    color: #f8fafc !important;
    padding: 10px;
}

/* Validation styling */
.form-control.invalid {
    border-color: var(--error) !important;
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.15) !important;
}

.validation-message {
    color: #fda4af;
    font-family: var(--font-secondary);
    font-size: 0.775rem;
    font-weight: 500;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.validation-message::before {
    content: 'error_outline';
    font-family: 'Material Icons Outlined';
    font-size: 0.9rem;
    vertical-align: middle;
}

/* --- STEP 3: Password Visuals --- */
.password-step-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.password-group {
    grid-column: span 12;
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-left {
    position: absolute;
    left: 1rem;
    color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
    font-size: 1.25rem;
}

.input-icon-wrapper .form-control {
    padding-left: 2.75rem;
    padding-right: 2.75rem;
}

.input-icon-right {
    position: absolute;
    right: 0.75rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.input-icon-right:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

/* Security Checklist */
.security-reqs {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.25rem;
    margin-top: 0.5rem;
}

.security-reqs h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.req-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.req-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-family: var(--font-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.req-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.req-icon span {
    font-size: 10px;
    font-weight: 900;
    color: transparent;
    transition: color 0.3s;
}

/* Valid item state */
.req-item.valid {
    color: #a7f3d0;
}

.req-item.valid .req-icon {
    background: var(--success);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
    transform: scale(1.1);
}

.req-item.valid .req-icon span {
    color: var(--text-dark);
}

/* --- Card Footer & Buttons --- */
.card-footer {
    padding: 0.75rem 2rem 1rem;
    border-top: 1px solid rgba(0, 240, 255, 0.15) !important;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    background: rgba(13, 20, 48, 0.5) !important;
}

/* Button Base */
.btn {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    outline: none;
    user-select: none;
}

.btn-primary {
    background: linear-gradient(135deg, #ff007f 0%, #7928ca 50%, #00f0ff 100%);
    background-size: 200% 200%;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(255, 0, 127, 0.4), 0 0 30px rgba(0, 240, 255, 0.2);
    position: relative;
    overflow: hidden;
    animation: gradient-shift 6s ease infinite alternate;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 30px rgba(255, 0, 127, 0.65), 0 0 40px rgba(0, 240, 255, 0.4);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(1px) scale(0.97);
    box-shadow: 0 4px 15px rgba(255, 0, 127, 0.4);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

.btn-text {
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
}

.btn-text:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.btn span.material-icons-outlined {
    font-size: 1.15rem;
    transition: transform 0.3s;
}

.btn-primary:hover span.material-icons-outlined {
    transform: translateX(3px);
}

/* --- Registration Success Screen --- */
.register-success-wrapper {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(20px);
    padding: 4rem 3rem;
    text-align: center;
    width: 100%;
    max-width: 550px;
    animation: zoom-in-blur 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.success-illustration {
    width: 200px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 10px 20px rgba(6, 182, 212, 0.3));
    animation: float 4s ease-in-out infinite;
}

.success-title {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.75rem;
}

.success-subtitle {
    font-family: var(--font-secondary);
    color: var(--text-muted);
    font-size: 1rem;
}

@keyframes zoom-in-blur {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* --- Toast Notification System --- */
.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 9999;
    max-width: 400px;
    width: calc(100vw - 4rem);
}

.toast-item {
    background: rgba(13, 12, 29, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast-item.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-item.hide {
    transform: translateX(120%);
    opacity: 0;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast-content .icon {
    font-size: 1.5rem;
}

.toast-content .message {
    font-family: var(--font-secondary);
    font-size: 0.875rem;
    font-weight: 550;
    color: #e2e8f0;
    line-height: 1.4;
}

.toast-item .close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.toast-item .close-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

/* Toast Color Variations */
.toast-item.success {
    border-left: 4px solid var(--success);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15), 0 0 15px rgba(16, 185, 129, 0.1);
}

.toast-item.success .icon {
    color: var(--success);
}

.toast-item.error {
    border-left: 4px solid var(--error);
    box-shadow: 0 10px 30px rgba(244, 63, 94, 0.15), 0 0 15px rgba(244, 63, 94, 0.1);
}

.toast-item.error .icon {
    color: var(--error);
}

.toast-item.warning {
    border-left: 4px solid var(--warning);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.15), 0 0 15px rgba(245, 158, 11, 0.1);
}

.toast-item.warning .icon {
    color: var(--warning);
}

.toast-item.info {
    border-left: 4px solid var(--accent);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.15), 0 0 15px rgba(6, 182, 212, 0.1);
}

.toast-item.info .icon {
    color: var(--accent);
}

/* --- Comprehensive Responsive Layout Breakpoints --- */

/* Laptops / Tablets in Landscape (max-width: 1080px) */
@media (max-width: 1080px) {
    .register-card {
        max-width: 96% !important;
    }

    .registration-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .registration-grid::after {
        display: none !important;
    }
}

/* Tablets & Mobile in Portrait (max-width: 768px) */
@media (max-width: 768px) {
    main {
        padding: 1rem 0.5rem !important;
    }

    .register-container {
        padding: 0.75rem 0.5rem !important;
    }

    .register-card {
        max-width: 100% !important;
        border-radius: 18px !important;
    }

    .card-header {
        padding: 1.25rem 1rem !important;
    }

    .card-body {
        padding: 1.25rem 1rem !important;
    }

    .card-footer {
        padding: 1rem !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }

    .card-footer .btn {
        width: 100% !important;
        justify-content: center !important;
    }

    .header-main-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.85rem !important;
    }

    .header-main-row>div:last-child {
        width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }

    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 0.65rem !important;
    }

    .form-group,
    .form-group.full-width {
        grid-column: span 1 !important;
    }

    .product-checkbox-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important;
        gap: 0.6rem !important;
    }

    .req-grid {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }

    .modal-card {
        max-width: 95% !important;
        margin: 1rem !important;
        border-radius: 18px !important;
    }

    .toast-container {
        top: 1rem;
        right: 1rem;
        width: calc(100vw - 2rem);
    }
}

/* Small Mobile Phones (max-width: 480px) */
@media (max-width: 480px) {
    .register-container {
        padding: 0.5rem 0.25rem !important;
    }

    .card-header {
        padding: 1rem 0.75rem !important;
    }

    .card-body {
        padding: 1rem 0.75rem !important;
    }

    .page-title {
        font-size: 1.25rem !important;
    }

    .page-subtitle {
        font-size: 0.8rem !important;
    }

    .header-main-row>div:last-child {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .edit-profile-nav-btn,
    .theme-toggle-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 8px 14px !important;
        font-size: 12.5px !important;
    }

    .product-checkbox-grid {
        grid-template-columns: 1fr !important;
    }

    .form-control {
        font-size: 0.85rem !important;
        padding: 0.5rem 0.75rem !important;
    }
}

/* --- Theme Selection Toggle Button --- */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    user-select: none;
    z-index: 10;
}

.theme-toggle-btn span {
    color: inherit !important;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.theme-toggle-btn span.material-icons-outlined {
    font-size: 1.15rem;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.theme-toggle-btn:hover span.material-icons-outlined {
    transform: rotate(45deg);
}

.register-container.light-theme .theme-toggle-btn {
    background: rgba(0, 0, 0, 0.03) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    color: #0f172a !important;
}

.register-container.light-theme .theme-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.06) !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
}

/* --- Multi-Product Checkbox List --- */
.product-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.35rem;
    margin-top: 0.2rem;
    margin-bottom: 0.25rem;
    width: 100%;
}

.product-checkbox-card {
    background: rgba(13, 12, 29, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 0.3rem 0.55rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.product-checkbox-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.product-checkbox-card.active {
    background: rgba(6, 182, 212, 0.08);
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2), inset 0 0 8px rgba(6, 182, 212, 0.05);
}

.checkbox-custom span {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.2s, transform 0.2s;
}

.product-checkbox-card.active .checkbox-custom span {
    color: var(--accent);
    text-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
    transform: scale(1.05);
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.product-info .product-name {
    font-size: 0.74rem;
    font-weight: 600;
    color: #f1f5f9;
    line-height: 1.15;
}

.product-info .product-code {
    font-size: 0.62rem;
    font-weight: 500;
    color: var(--text-muted);
    font-family: var(--font-secondary);
    line-height: 1.05;
}

.product-error-alert {
    background: rgba(244, 63, 94, 0.05);
    border: 1px dashed rgba(244, 63, 94, 0.2);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    color: #fda4af;
    font-size: 0.85rem;
    grid-column: 1 / -1;
}

.register-container.light-theme .product-checkbox-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

.register-container.light-theme .product-checkbox-card:hover {
    background: rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
}

.register-container.light-theme .product-checkbox-card.active {
    background: rgba(99, 102, 241, 0.1) !important;
    border-color: #6366f1 !important;
}

/* Custom Theme Container Overrides */
.register-container.dark-theme,
.register-container:not(.light-theme) {
    background: transparent !important;
    color: var(--text-main, #f8fafc) !important;
}

.register-container.light-theme {
    background: transparent !important;
    color: var(--text-main, #0f172a) !important;
}

/* Dark Theme Explicit Card & Text Colors */
.register-container:not(.light-theme) .register-card,
.register-container.dark-theme .register-card {
    background: rgba(13, 20, 48, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8), 0 0 50px -10px rgba(99, 102, 241, 0.15) !important;
}

.register-container:not(.light-theme) .card-header,
.register-container.dark-theme .card-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.register-container:not(.light-theme) .page-title,
.register-container.dark-theme .page-title,
.register-container:not(.light-theme) .modal-title,
.register-container.dark-theme .modal-title,
.register-container:not(.light-theme) h2,
.register-container.dark-theme h2,
.register-container:not(.light-theme) h3,
.register-container.dark-theme h3 {
    color: #f8fafc !important;
    background: none !important;
    -webkit-text-fill-color: #f8fafc !important;
}

.register-container:not(.light-theme) .page-subtitle,
.register-container.dark-theme .page-subtitle,
.register-container:not(.light-theme) .modal-subtitle,
.register-container.dark-theme .modal-subtitle,
.register-container:not(.light-theme) p,
.register-container.dark-theme p {
    color: #94a3b8 !important;
}

.register-container:not(.light-theme) .form-label,
.register-container.dark-theme .form-label {
    color: #cbd5e1 !important;
}

.register-container:not(.light-theme) .form-control,
.register-container.dark-theme .form-control,
.register-container:not(.light-theme) ::deep .form-control,
.register-container.dark-theme ::deep .form-control {
    background-color: rgba(13, 12, 29, 0.6) !important;
    background: rgba(13, 12, 29, 0.6) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
    color: #f8fafc !important;
}

.register-container:not(.light-theme) .product-checkbox-card,
.register-container.dark-theme .product-checkbox-card {
    background: rgba(13, 12, 29, 0.5) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
}

.register-container:not(.light-theme) .product-checkbox-card .product-name,
.register-container.dark-theme .product-checkbox-card .product-name {
    color: #f8fafc !important;
}

.register-container:not(.light-theme) .product-checkbox-card .product-code,
.register-container.dark-theme .product-checkbox-card .product-code {
    color: #94a3b8 !important;
}

.register-container:not(.light-theme) .card-footer,
.register-container.dark-theme .card-footer {
    background: rgba(13, 20, 48, 0.5) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Light Theme Explicit Card & Text Colors */
.register-container.light-theme .register-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.08), 0 0 1px 1px rgba(0, 0, 0, 0.04) !important;
}

.register-container.light-theme .card-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.register-container.light-theme .page-title,
.register-container.light-theme .modal-title,
.register-container.light-theme h2,
.register-container.light-theme h3 {
    color: #0f172a !important;
    background: none !important;
    -webkit-text-fill-color: #0f172a !important;
}

.register-container.light-theme .page-subtitle,
.register-container.light-theme .modal-subtitle,
.register-container.light-theme p {
    color: #475569 !important;
}

.register-container.light-theme .form-label {
    color: #334155 !important;
}

.register-container.light-theme .form-control,
.register-container.light-theme ::deep .form-control {
    background-color: #ffffff !important;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
}

.register-container.light-theme .product-checkbox-card {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
}

.register-container.light-theme .product-name {
    color: #0f172a !important;
}

.register-container.light-theme .product-code {
    color: #64748b !important;
}

.register-container.light-theme .card-footer {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
}

.register-container.light-theme .checkbox-custom span {
    color: rgba(15, 23, 42, 0.3) !important;
}

.register-container.light-theme .product-checkbox-card.active .checkbox-custom span {
    color: #6366f1 !important;
    text-shadow: none !important;
}

/* Nav & Theme Toggle Buttons Styling */
.register-container:not(.light-theme) .theme-toggle-btn,
.register-container.dark-theme .theme-toggle-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
    color: #f8fafc !important;
}

.register-container:not(.light-theme) .theme-toggle-btn:hover,
.register-container.dark-theme .theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.16) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
}

.register-container.light-theme .theme-toggle-btn {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #334155 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
}

.register-container.light-theme .theme-toggle-btn:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

.register-container:not(.light-theme) .edit-profile-nav-btn,
.register-container.dark-theme .edit-profile-nav-btn {
    background: rgba(56, 189, 248, 0.1) !important;
    border: 1.5px solid rgba(56, 189, 248, 0.35) !important;
    color: #38bdf8 !important;
}

.register-container:not(.light-theme) .edit-profile-nav-btn:hover,
.register-container.dark-theme .edit-profile-nav-btn:hover {
    background: linear-gradient(135deg, #0284c7, #4f46e5) !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
}

.register-container.light-theme .edit-profile-nav-btn {
    background: rgba(37, 99, 235, 0.08) !important;
    border: 1.5px solid rgba(37, 99, 235, 0.35) !important;
    color: #2563eb !important;
}

.register-container.light-theme .edit-profile-nav-btn:hover {
    background: linear-gradient(135deg, #2563eb, #4f46e5) !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25) !important;
}

/* --- Top Back to Sign In Link (Above Facility Registration) --- */
.back-link-top {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font-primary, 'Outfit', 'Inter', system-ui, sans-serif);
    font-size: 0.78rem !important;
    font-weight: 600;
    padding: 0.15rem 0.45rem !important;
    margin-bottom: 0.25rem !important;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
    width: fit-content;
}

.back-link-top .material-icons-outlined {
    font-size: 0.95rem !important;
    transition: transform 0.2s ease;
}

.back-link-top:hover .material-icons-outlined {
    transform: translateX(-3px);
}

.register-container:not(.light-theme) .back-link-top,
.register-container.dark-theme .back-link-top {
    color: #94a3b8 !important;
}

.register-container:not(.light-theme) .back-link-top:hover,
.register-container.dark-theme .back-link-top:hover {
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.08) !important;
}

.register-container.light-theme .back-link-top {
    color: #64748b !important;
}

.register-container.light-theme .back-link-top:hover {
    color: #2563eb !important;
    background: rgba(37, 99, 235, 0.06) !important;
}

/* Compact header nav buttons & footer */
.register-container .edit-profile-nav-btn {
    padding: 4px 12px !important;
    font-size: 11.5px !important;
    height: 30px !important;
    gap: 5px !important;
    border-radius: 9999px !important;
}

.register-container .theme-toggle-btn {
    padding: 4px 12px !important;
    font-size: 11.5px !important;
    height: 30px !important;
    gap: 5px !important;
    border-radius: 9999px !important;
}

.register-container .card-footer {
    padding: 0.65rem 1.5rem 0.85rem !important;
}

.register-container .card-footer .btn-primary {
    height: 35px !important;
    padding: 0.35rem 1.4rem !important;
    font-size: 0.82rem !important;
    border-radius: 7px !important;
}

.register-container .card-footer .btn-primary .material-icons-outlined {
    font-size: 16px !important;
}