:root {
    --fytron-gold: #ffac2b;
    --fytron-gold-light: #fff4d6;
    --fytron-green: #28a745;
    --fytron-blue: #007bff;
    --fytron-dark: #1a1a2e;
}

body {
    font-family: 'Exo 2', sans-serif !important;
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Card - Enhanced */
.account-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    margin-top: 2rem;
}

.account-card .card-body {
    padding: 2rem 2.5rem;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background-color: #e9ecef;
    color: #6c757d;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.step.active .step-icon {
    background-color: var(--fytron-gold);
    color: white;
    border-color: var(--fytron-gold);
}

.step.completed .step-icon {
    background-color: var(--fytron-gold-light);
    color: var(--fytron-gold);
    border-color: var(--fytron-gold);
}

.step-label {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
}

.step.active .step-label,
.step.completed .step-label {
    color: var(--fytron-gold);
}

.step.clickable {
    cursor: pointer;
}

.step.clickable:hover .step-icon {
    transform: scale(1.05);
}

.step:not(.clickable) {
    cursor: not-allowed;
    opacity: 0.7;
}

.step-line {
    width: 40px;
    height: 2px;
    background-color: #e9ecef;
    margin: 0 0.25rem;
    margin-bottom: 1.5rem;
}

.step-line.completed {
    background-color: var(--fytron-gold);
}

/* Form styling */
.form-group {
    margin-bottom: 1.25rem;
}

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

/* PIN Input Styling - Modern Verification Code Style */
.pin-input-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.pin-digits {
    display: flex;
    gap: 0.5rem;
}

.pin-digit {
    width: 50px;
    height: 50px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    background-color: #fff;
    transition: all 0.2s ease;
    outline: none;
    caret-color: var(--fytron-gold);
}

.pin-digit:focus {
    border-color: var(--fytron-gold);
    box-shadow: 0 0 0 3px rgba(255, 172, 43, 0.1);
}

.pin-digit.filled {
    background-color: #fff;
}

.pin-digit.error {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.05);
}

.pin-toggle {
    width: 40px;
    height: 40px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: #e9ecef;
    color: #495057;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.pin-toggle:hover {
    background-color: #dde0e3;
    color: #212529;
}

.pin-hidden .pin-digit {
    -webkit-text-security: disc;
    text-security: disc;
}

/* Fallback for browsers that don't support text-security */
.pin-hidden .pin-digit:not(:focus) {
    font-family: 'password';
    color: transparent;
    text-shadow: 0 0 0 #495057;
}


/* Password strength */
.password-strength {
    display: flex;
    gap: 4px;
    margin-top: 0.5rem;
}

.strength-bar {
    height: 4px;
    flex: 1;
    background-color: #e9ecef;
    border-radius: 2px;
    transition: background-color 0.3s;
}

.strength-bar.weak {
    background-color: #dc3545;
}

.strength-bar.fair {
    background-color: #ffc107;
}

.strength-bar.good {
    background-color: #28a745;
}

/* Buttons */
.btn {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    color: white !important;
    transition: all 0.15s ease;
}

.btn:focus,
.btn:active {
    outline: none !important;
    box-shadow: none !important;
}

/* Step panels */
.step-panel {
    display: none;
}

.step-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* Subdomain preview */
.subdomain-preview {
    background-color: #e9ecef;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-family: monospace;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 0.5rem;
}

/* TOS Toggle - Use Bootstrap's default styling with gold color */
.custom-switch .custom-control-input:checked~.custom-control-label::before {
    background-color: var(--fytron-gold);
    border-color: var(--fytron-gold);
}

.custom-switch .custom-control-input:focus~.custom-control-label::before {
    box-shadow: 0 0 0 0.2rem rgba(255, 172, 43, 0.25);
}

/* TOS Toggle - Error state when not accepted */
.custom-switch .custom-control-input.is-invalid~.custom-control-label::before,
.custom-switch .custom-control-input.tos-error~.custom-control-label::before {
    background-color: #dc3545;
    border-color: #dc3545;
}

.custom-switch .custom-control-input.is-invalid:focus~.custom-control-label::before,
.custom-switch .custom-control-input.tos-error:focus~.custom-control-label::before {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Hide validation icon on TOS toggle */
.custom-switch .fv-plugins-icon {
    display: none;
}

/* Summary card */
.summary-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.25rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    flex-wrap: wrap;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    color: #6c757d;
    font-size: 0.875rem;
}

.summary-value {
    font-weight: 500;
    color: #374151;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .account-card .card-body {
        padding: 1.5rem;
    }

    .step-line {
        width: 20px;
    }

    .step-icon {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .step-label {
        font-size: 0.65rem;
    }

    .step-indicator {
        margin-bottom: 1.5rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .summary-item {
        flex-direction: column;
        gap: 0.25rem;
    }

    /* PIN inputs on mobile */
    .pin-digit {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .pin-digits {
        gap: 0.375rem;
    }

    .pin-toggle {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .account-card .card-body {
        padding: 1.25rem;
    }

    .step-line {
        width: 15px;
    }

    .step-icon {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .step-label {
        font-size: 0.6rem;
    }

    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 0.75rem;
    }

    .d-flex.justify-content-between .btn {
        width: 100%;
    }

    .d-flex.justify-content-between .btn-secondary {
        order: 2;
    }

    .d-flex.justify-content-between .btn-primary,
    .d-flex.justify-content-between .btn-warning {
        order: 1;
    }

    /* PIN inputs on small mobile */
    .pin-digit {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .pin-digits {
        gap: 0.25rem;
    }

    .pin-toggle {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .pin-input-container {
        gap: 0.375rem;
    }
}

/* Hide original form elements that are replaced by modern components */
.pin-input-container+input[type="hidden"] {
    display: none;
}