[v-cloak] {
    display: none;
}

:root {
    --bs-body-bg: #121212;
    --bs-body-color: #e0e0e0;
    --primary-color: #7952b3;
    --secondary-color: #6c42a5;
    --dark-bg: #121212;
    --card-bg: #2a2a2a;
    --section-bg: #1e1e1e;
    --wizard-back-bg: #4a4a4a;
    --wizard-back-hover: #5a5a5a;
    --wizard-progress-bg: #333333;
    --wizard-progress-glow: rgba(121, 82, 179, 0.4);
}

body {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

html,
body {
    height: 100%;
}

.form-signin {
    max-width: 330px;
    padding: 1rem;
}

.form-signin .form-floating:focus-within {
    z-index: 2;
}

.form-signin input[type="email"] {
    margin-bottom: -1px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
    margin-bottom: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.card-login {
    width: 500px;
    margin: auto;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.small, small {
    font-size: 1em;
}

/* Custom checkbox styling */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--primary-color);
    border-radius: 3px;
    background-color: transparent;
    display: inline-block;
    position: relative;
    margin-right: 6px;
    vertical-align: middle;
    cursor: pointer;
}

input[type="checkbox"]:checked {
    background-color: var(--primary-color);
}

input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    top: 1px;
    left: 5px;
    transform: rotate(45deg);
}

/* Remove the default focus outline and replace with white or none */
input:focus,
button:focus,
input[type="checkbox"]:focus {
    outline: none;
    box-shadow: none;
    border-color: var(--primary-color);
}

/* Optional: Add a subtle white outline on focus if desired */
/*
input:focus,
button:focus {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}
*/

/* Form control focus styles */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
    background-color: var(--dark-bg);
    color: var(--bs-body-color);
}

/* Improve checkbox label alignment */
.form-check-label {
    margin-left: 4px;
    vertical-align: middle;
}

/* Fix alignment of the checkbox and label */
.form-check {
    display: flex;
    align-items: center;
}

/* Override the button active state */
.btn-primary:active,
.btn-primary:focus,
.btn-primary.active {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    box-shadow: none !important;
}

/* Add an additional rule for focus-visible state */
.btn-primary:focus-visible {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    box-shadow: none !important;
}


/* =================================================================
   REGISTRATION WIZARD — Progress Bar
   ================================================================= */

.wizard-progress {
    display: flex;
    gap: 6px;
    margin-bottom: 1.5rem;
    padding: 0 2px;
}

.wizard-progress-segment {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background-color: var(--wizard-progress-bg);
    overflow: hidden;
    transition: box-shadow 0.4s ease;
}

.wizard-progress-segment.active {
    box-shadow: 0 0 8px var(--wizard-progress-glow);
}

.wizard-progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wizard-progress-segment.active .wizard-progress-fill,
.wizard-progress-segment.completed .wizard-progress-fill {
    width: 100%;
}

/* Step label under progress bar */
.wizard-step-label {
    font-size: 0.8rem;
    color: #888;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.wizard-step-label span {
    color: var(--primary-color);
    font-weight: 600;
}


/* =================================================================
   REGISTRATION WIZARD — Step Container & Slide Transitions
   ================================================================= */

.wizard-step-container {
    position: relative;
    overflow: hidden;
    min-height: 220px;
}

/* Slide-left: moving forward (current exits left, new enters from right) */
.slide-left-enter-active,
.slide-left-leave-active {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-left-enter-from {
    transform: translateX(30px);
    opacity: 0;
}

.slide-left-leave-to {
    transform: translateX(-30px);
    opacity: 0;
}

/* Slide-right: moving backward (current exits right, new enters from left) */
.slide-right-enter-active,
.slide-right-leave-active {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-right-enter-from {
    transform: translateX(-30px);
    opacity: 0;
}

.slide-right-leave-to {
    transform: translateX(30px);
    opacity: 0;
}

/* Ensure leaving step is positioned absolutely so both are visible during transition */
.slide-left-leave-active,
.slide-right-leave-active {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
}


/* =================================================================
   REGISTRATION WIZARD — Info/Tips Panel
   ================================================================= */

.wizard-info-panel {
    background-color: var(--section-bg);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #bbb;
}

.wizard-info-panel .wizard-info-icon {
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-size: 0.95rem;
}

.wizard-info-panel .wizard-info-title {
    font-weight: 600;
    color: var(--bs-body-color);
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
}

.wizard-info-panel ul {
    margin: 0.4rem 0 0 0;
    padding-left: 1.25rem;
}

.wizard-info-panel ul li {
    margin-bottom: 0.2rem;
}

.wizard-info-panel ul li:last-child {
    margin-bottom: 0;
}


/* =================================================================
   REGISTRATION WIZARD — Navigation Buttons (Back / Next)
   ================================================================= */

.wizard-nav {
    display: flex;
    gap: 0.625rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.wizard-nav .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Back button — grey with white text */
.btn-wizard-back {
    background-color: var(--wizard-back-bg);
    border: 1px solid transparent;
    color: #ffffff;
}

.btn-wizard-back:hover {
    background-color: var(--wizard-back-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-wizard-back:active,
.btn-wizard-back:focus {
    background-color: var(--wizard-back-hover) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

/* Full-width next (step 1 only) */
.wizard-nav-full .btn {
    width: 100%;
    padding: 0.85rem 1rem;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Disabled state for next button */
.wizard-nav .btn-primary:disabled,
.wizard-nav-full .btn-primary:disabled {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


/* =================================================================
   REGISTRATION WIZARD — Review/Summary Card (Step 6)
   ================================================================= */

.wizard-review-card {
    background-color: var(--section-bg);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}

.wizard-review-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.6rem 0;
    border-bottom: 1px solid #2a2a2a;
}

.wizard-review-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.wizard-review-row:first-child {
    padding-top: 0;
}

.wizard-review-label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
    flex-shrink: 0;
    margin-right: 1rem;
}

.wizard-review-value {
    font-size: 0.95rem;
    color: var(--bs-body-color);
    text-align: right;
    word-break: break-word;
}

/* Masked values (password, pin) */
.wizard-review-value.masked {
    letter-spacing: 2px;
    color: #777;
}

/* Edit link inside review rows */
.wizard-review-edit {
    font-size: 0.8rem;
    color: var(--primary-color);
    cursor: pointer;
    margin-left: 0.75rem;
    text-decoration: none;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.wizard-review-edit:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}


/* =================================================================
   REGISTRATION WIZARD — Form Select (dropdown) dark theme fix
   ================================================================= */

.form-select {
    background-color: var(--dark-bg);
    border-color: #444;
    color: var(--bs-body-color);
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: none;
    background-color: var(--dark-bg);
    color: var(--bs-body-color);
}

.form-select option {
    background-color: var(--card-bg);
    color: var(--bs-body-color);
}

/* =========================================================
   INVITE BANNER (registration via invite link)
   ========================================================= */
.invite-banner {
    margin-bottom: 1rem;
}

.invite-banner-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(25, 135, 84, 0.1);
    border: 1px solid rgba(25, 135, 84, 0.25);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

.invite-banner-icon {
    font-size: 1.5rem;
    color: #198754;
    flex-shrink: 0;
}

.invite-banner-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.invite-banner-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #e0e0e0;
}

.invite-banner-label {
    font-size: 0.8rem;
    color: #9e9e9e;
}

/* =========================================================
   RECOVERY TOKEN User Card
   ========================================================= */
.recovery-token-user-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.recovery-token-user-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
}

.recovery-token-user-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.recovery-token-user-label {
    font-size: 0.8rem;
    color: #9e9e9e;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.recovery-token-user-value {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9rem;
    color: #e0e0e0;
}

/* =========================================================
   RECOVERY TOKEN Method Buttons
   ========================================================= */
.recovery-method-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.recovery-method-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}