:root {
    /* Colors */
    --geist-foreground: #005688;
    --geist-background: #fff;
    --accents-1: #fafafa;
    --accents-2: #eaeaea;
    --accents-3: #999;
    --accents-4: #888;
    --accents-5: #666;
    --accents-6: #1a4a66;
    --accents-7: #333;
    --accents-8: #111;
    --success-light: #3291ff;
    --success: #5693b6;
    --success-dark: #0761d1;
    --error-light: #ff1a1a;
    --error: #e00;
    --error-dark: #c00;
    --secondary-light: #7928ca;
    --secondary: #f81ce5;
    --link-color: #0070f3;
    --selection: #79ffe1;

    /* Spacing */
    --gap-quarter: 0.25rem;
    --gap-half: 0.5rem;
    --gap: 16px;
    --gap-double: 2rem;
    --small-gap: 4rem;
    --big-gap: 8rem;
    --radius: 8px;
    --inline-radius: 3px;
    --header-height: 64px;
    --page-margin: 1rem;
    --page-width: 1000px;
    --page-width-with-margin: calc(var(--page-width) + 2 * var(--page-margin));

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    --font-mono: Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace;

    --primary-rgb: 0, 122, 255;
    /* RGB values for the primary color */
    --primary: rgb(var(--primary-rgb));
    --primary-dark: #0055b3;

    --color-primary: #0070f3;
    --color-primary-dark: #0055b3;
    --color-secondary: #7928ca;
    --color-success: #0070f3;
    --color-error: #ff4d4f;
    --color-warning: #f5a623;
    --color-background: #fff;
    --color-foreground: #000;
    --color-text: #444;
    --color-accents-1: #fafafa;
    --color-accents-2: #eaeaea;
    --color-accents-3: #999;
    --color-accents-4: #888;
    --color-accents-5: #666;
    --color-accents-6: #444;
    --color-accents-7: #333;
    --color-accents-8: #111;
    --shadow-small: 0 5px 10px rgba(0, 0, 0, 0.12);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-large: 0 30px 60px rgba(0, 0, 0, 0.12);
}

/* Vercel Navigation Styles */
.vercel-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(5px);
    border-bottom: 1px solid var(--accents-2);
    height: var(--header-height);
    width: 100%;
}

.nav-container {
    max-width: var(--page-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--gap);
}

.nav-start,
.nav-end {
    display: flex;
    align-items: center;
    gap: var(--gap);
}

.nav-logo {
    display: flex;
    align-items: center;
    height: 32px;
}

.nav-logo img {
    height: 100%;
    width: auto;
}

.nav-separator {
    width: 1px;
    height: 24px;
    background: var(--accents-2);
    margin: 0 var(--gap-half);
}

.nav-back {
    display: flex;
    align-items: center;
    gap: var(--gap-half);
    color: var(--accents-5);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-back:hover {
    color: var(--geist-foreground);
}

.nav-signin {
    display: flex;
    align-items: center;
    gap: var(--gap-half);
    color: var(--accents-5);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem var(--gap);
    border-radius: var(--radius);
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.nav-signin:hover {
    color: var(--geist-foreground);
    background: var(--accents-1);
    border-color: var(--accents-2);
}

.nav-signin i {
    font-size: 1.1em;
    transition: transform 0.2s ease;
}

.nav-signin:hover i {
    transform: translateX(4px);
}

.nav-divider {
    width: 1px;
    height: 24px;
    background: var(--accents-2);
}

.language-switch {
    position: relative;
}

.language-button {
    display: flex;
    align-items: center;
    gap: var(--gap-half);
    color: var(--accents-5);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem var(--gap);
    border: none;
    background: transparent;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    cursor: pointer;
}

.language-button:hover {
    color: var(--geist-foreground);
    background: var(--accents-1);
}

.language-button i:last-child {
    font-size: 0.75em;
    margin-left: var(--gap-quarter);
    transition: transform 0.2s ease;
}

.language-button[aria-expanded="true"] i:last-child {
    transform: rotate(180deg);
}

.language-menu {
    min-width: 180px;
    padding: var(--gap-half) 0;
    margin-top: var(--gap-half);
    border: 1px solid var(--accents-2);
    border-radius: var(--radius);
    background: var(--geist-background);
    box-shadow: 0 4px 14px 0 rgb(0 0 0 / 10%);
}

.language-option {
    display: flex;
    align-items: center;
    gap: var(--gap);
    padding: var(--gap-half) var(--gap);
    color: var(--accents-5);
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.15s ease;
}

.language-option:hover {
    background: var(--accents-1);
    color: var(--geist-foreground);
}

.language-option.active {
    color: var(--geist-foreground);
    background: var(--accents-1);
}

/* RTL Support */
[dir="rtl"] .nav-back i {
    transform: scaleX(-1);
}

[dir="rtl"] .nav-signin i {
    transform: scaleX(-1);
}

[dir="rtl"] .nav-signin:hover i {
    transform: scaleX(-1) translateX(-4px);
}

[dir="rtl"] .language-menu {
    text-align: right;
}

/* Mobile Responsive */
@media (max-width: 768px) {

    .nav-separator,
    .nav-back,
    .nav-signin,
    .nav-divider {
        display: none;
    }

    .nav-container {
        padding: 0 var(--gap-half);
    }

    .language-button {
        padding: 0.5rem;
    }

    .language-button span {
        display: none;
    }
}

::selection {
    background: var(--selection);
    color: var(--geist-foreground);
}

body {
    background: var(--geist-background);
    color: var(--geist-foreground);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

.registration-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.registration-header {
    text-align: center;
    margin-bottom: 3rem;
}

.registration-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.registration-header p {
    color: var(--accents-5);
    font-size: 1.125rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--gap-double);
    margin-bottom: var(--small-gap);
}

.form-section {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 4px 14px 0 rgb(0 0 0 / 10%);
}

.section-title {
    display: flex;
    align-items: center;
    gap: var(--gap);
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.section-title i {
    color: var(--geist-success);
}

.form-group {
    margin-bottom: var(--gap-double);
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accents-6);
    margin-bottom: var(--gap-half);
    display: block;
}

.form-control {
    border: 1px solid var(--accents-2);
    border-radius: var(--inline-radius);
    padding: var(--gap);
    height: auto;
    font-size: 0.875rem;
    transition: all 0.15s ease;
    background: var(--geist-background);
    color: var(--geist-foreground);
    width: 100%;
    line-height: 1.5;
}

.form-control:hover {
    border-color: var(--accents-5);
}

.form-control:focus {
    border-color: var(--geist-foreground);
    box-shadow: 0 0 0 1px var(--geist-foreground);
    outline: none;
}

.form-control::placeholder {
    color: var(--accents-3);
}

.required-field::after {
    content: "*";
    color: var(--error);
    margin-left: var(--gap-quarter);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--gap) center;
    padding-right: var(--gap-double);
}

.logo-upload {
    border: 2px dashed var(--accents-3);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-upload:hover {
    border-color: var(--accents-5);
    background-color: var(--accents-1);
}

.logo-upload.drag-active {
    border-color: var(--primary);
    background-color: var(--accents-1);
    transform: scale(1.02);
}

.logo-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.logo-upload .material-icons {
    font-size: 3rem;
    color: var(--accents-5);
    margin-bottom: 1rem;
}

.logo-preview {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 4px;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 40px;
    width: 100%;
}

.form-navigation button {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    line-height: 1;
}

#prevStep.btn-outline-primary {
    background-color: transparent;
    color: var(--geist-foreground);
    border: 1px solid var(--geist-foreground);
    padding: 10px 20px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1;
}

#prevStep.btn-outline-primary:hover {
    background-color: rgba(0, 112, 243, 0.08);
    color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

#prevStep.btn-outline-primary:hover i {
    transform: translateX(-3px);
}

/* Vercel style for buttons */
.btn-register,
#nextStep,
button[type="submit"].btn-register {
    background-color: var(--geist-foreground);
    color: white !important;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    text-decoration: none;
    width: auto;
    min-width: 140px;
    line-height: 1;
}

.btn-register i,
#nextStep i,
#prevStep i {
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    vertical-align: middle;
    margin: 0;
    padding: 0;
}

.btn-register:hover,
#nextStep:hover,
button[type="submit"].btn-register:hover {
    background-color: var(--success);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-register:hover i,
#nextStep:hover i {
    transform: translateX(3px);
}

.btn-register:active,
#nextStep:active,
button[type="submit"].btn-register:active {
    transform: translateY(0);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

.btn-register:focus,
#nextStep:focus,
button[type="submit"].btn-register:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 112, 243, 0.3);
}

/* Progress Container */
.progress-container {
    margin-bottom: 3rem;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    padding: 0 1rem;
    transition: all 0.3s ease;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accents-2);
    color: var(--accents-5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.progress-step span {
    font-size: 0.875rem;
    color: var(--accents-5);
    text-align: center;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: var(--geist-foreground);
    color: var(--geist-background);
    border-color: rgb(var(--geist-foreground-rgb));
    box-shadow: 0 0 0 4px rgba(var(--geist-foreground-rgb), 0.2);
}

.progress-step.active span {
    color: var(--geist-foreground);
    font-weight: 600;
}

.progress-bar {
    height: 4px;
    background: var(--accents-2);
    border-radius: 2px;
    margin: 1rem 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--geist-foreground);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Floating Actions */
.floating-actions {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.btn-floating {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    cursor: pointer;
    padding: 0;
    min-width: 48px;
    min-height: 48px;
    overflow: hidden;
}

.btn-floating:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.btn-floating:active {
    transform: translateY(0);
}

.btn-contact {
    background-color: white;
    color: var(--accents-6);
}

.btn-floating i {
    font-size: 24px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .registration-header {
        margin-bottom: 1.5rem;
    }

    .registration-header h1 {
        font-size: 1.5rem;
    }

    .registration-header p {
        font-size: 0.9rem;
    }

    .logo-upload {
        padding: 1.5rem;
    }

    .logo-upload .material-icons {
        font-size: 32px;
    }

    .floating-actions {
        bottom: 16px;
        right: 16px;
    }

    .btn-floating {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        border-radius: 50%;
        padding: 0;
    }

    .btn-floating i {
        font-size: 24px;
    }

    /* Form navigation responsive styles */
    .form-navigation {
        flex-direction: column-reverse;
        gap: 12px;
    }

    .form-navigation button {
        width: 100%;
        justify-content: center;
    }

    #prevStep.btn-outline-primary {
        order: 2;
    }

    .btn-register,
    #nextStep,
    button[type="submit"].btn-register {
        order: 1;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: var(--gap);
    }

    .registration-container {
        padding: var(--gap);
        padding-top: calc(var(--header-height) + var(--gap));
    }
}

@media (max-width: 768px) {
    .registration-container {
        margin: 1rem auto;
    }

    .registration-header h1 {
        font-size: 2rem;
    }

    .registration-header p {
        font-size: 1rem;
    }

    .form-section {
        padding: 1.5rem;
    }

    .progress-steps {
        flex-direction: column;
        gap: 1rem;
    }

    .progress-step {
        flex-direction: row;
        gap: 1rem;
    }

    .form-navigation {
        flex-direction: column;
        gap: var(--gap-half);
    }

    .form-navigation button {
        width: 100%;
        justify-content: center;
    }

    .btn-register {
        width: 100%;
        min-width: unset;
    }

    .floating-actions {
        bottom: 16px;
        right: 16px;
    }

    .btn-floating {
        width: 48px;
        height: 48px;
    }

    .btn-floating i {
        font-size: 24px;
    }

    [dir="rtl"] .floating-actions {
        left: 16px;
        right: auto;
    }

    /* Modal Responsive */
    .modal-dialog {
        margin: var(--gap);
        max-width: calc(100% - (var(--gap) * 2));
    }

    .modal-header {
        padding: var(--gap);
    }

    .modal-body {
        padding: var(--gap);
    }

    .modal-footer {
        padding: var(--gap);
        flex-direction: column;
    }

    .modal-footer .btn-register {
        width: 100%;
        max-width: 100%;
    }

    .modal-title {
        font-size: 1rem;
    }

    /* Navigation Responsive */
    .nav-container {
        padding: 0 var(--gap-half);
    }

    .nav-separator,
    .nav-back,
    .nav-signin,
    .nav-divider {
        display: none;
    }

    .nav-logo {
        height: 24px;
    }

    .language-button {
        padding: var(--gap-half);
    }

    .language-button span {
        display: none;
    }

    .language-menu {
        min-width: 140px;
        right: 0;
        left: auto;
    }

    [dir="rtl"] .language-menu {
        right: auto;
        left: 0;
    }
}

@media (max-width: 480px) {
    :root {
        --gap: 0.75rem;
        --gap-double: 1.25rem;
    }

    .registration-header h1 {
        font-size: 1.5rem;
    }

    .progress-steps {
        display: flex;
        overflow-x: auto;
        padding-bottom: var(--gap-half);
        margin: 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
    }

    .progress-steps::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari, Edge */
    }

    .progress-step {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .form-section {
        padding: var(--gap);
        margin-bottom: var(--gap);
    }

    .btn-register,
    .btn-floating {
        max-width: 100%;
        width: 100%;
    }

    .logo-upload {
        padding: var(--gap);
    }

    /* Form Controls */
    .form-control {
        padding: var(--gap-half) var(--gap);
        font-size: 1rem;
    }

    .form-label {
        font-size: 0.875rem;
    }

    /* Guide Button */
    .btn-guide {
        top: -3rem;
        right: 0;
        width: 100%;
        justify-content: center;
    }

    [dir="rtl"] .btn-guide {
        left: 0;
        right: auto;
    }

    /* Modal Adjustments */
    .modal-dialog {
        margin: var(--gap-half);
        max-width: calc(100% - var(--gap));
    }

    .modal-content {
        border-radius: var(--radius);
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: var(--gap);
    }

    .modal-title {
        font-size: 0.875rem;
    }

    .btn-close {
        right: var(--gap);
    }

    [dir="rtl"] .btn-close {
        left: var(--gap);
        right: auto;
    }
}

/* High DPI Screen Optimizations */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    .form-control,
    .btn-register,
    .btn-floating {
        -webkit-font-smoothing: subpixel-antialiased;
    }
}

/* Modal Styles */
.modal-dialog {
    margin: 1.75rem auto;
    max-width: 500px;
    width: calc(100% - 2rem);
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--geist-background);
    border: 1px solid var(--accents-2);
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--gap-double);
    border-bottom: 1px solid var(--accents-2);
}

.modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--geist-foreground);
    display: flex;
    align-items: center;
    gap: var(--gap);
}

.modal-title i {
    font-size: 1.5rem;
    color: var(--accents-5);
}

.btn-close {
    background: transparent;
    border: 0;
    padding: var(--gap-half);
    margin: calc(-1 * var(--gap-half));
    cursor: pointer;
    color: var(--accents-5);
    transition: color 0.15s ease;
}

.btn-close:hover {
    color: var(--geist-foreground);
}

.modal-body {
    padding: var(--gap-double);
    flex: 1 1 auto;
}

.modal-footer {
    padding: var(--gap-double);
    border-top: 1px solid var(--accents-2);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--gap);
}

.form-group {
    margin-bottom: var(--gap-double);
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: var(--gap-half);
    margin-bottom: var(--gap-half);
    color: var(--accents-6);
    font-weight: 500;
}

.form-group label i {
    color: var(--accents-5);
    font-size: 1.25rem;
}

.form-control {
    width: 100%;
    padding: var(--gap);
    border: 1px solid var(--accents-2);
    border-radius: var(--radius);
    background: var(--geist-background);
    color: var(--geist-foreground);
    font-size: 0.875rem;
    transition: all 0.15s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--geist-foreground);
    box-shadow: 0 0 0 2px rgba(0, 86, 136, 0.15);
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal-dialog {
        margin: var(--gap);
        width: calc(100% - var(--gap) * 2);
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: var(--gap);
    }

    .modal-title {
        font-size: 1.125rem;
    }

    .modal-footer {
        flex-direction: column;
        gap: var(--gap-half);
    }

    .modal-footer .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .modal-dialog {
        margin: var(--gap-half);
        width: calc(100% - var(--gap));
    }

    .modal-content {
        border-radius: var(--radius);
    }

    .modal-header {
        padding: var(--gap);
    }

    .modal-title {
        font-size: 1rem;
    }

    .btn-close {
        padding: var(--gap-quarter);
    }
}

/* Form Validation */
.form-control.is-invalid {
    border-color: #ff4d4f;
    box-shadow: none;
}

.invalid-feedback {
    color: #ff4d4f;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Password Styles */
.password-container {
    position: relative;
}

.input-group {
    position: relative;
}

.password-toggle-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--accents-5);
    transition: color 0.2s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.password-toggle-icon:hover {
    color: var(--geist-foreground);
    background-color: rgba(0, 0, 0, 0.05);
}

.password-toggle-icon i {
    font-size: 20px;
}

.password-strength-meter {
    margin-top: 0.5rem;
}

.strength-bars {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
}

.strength-bar {
    height: 4px;
    flex: 1;
    background: var(--accents-2);
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

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

.strength-bar.medium {
    background-color: #faad14;
}

.strength-bar.strong {
    background-color: #52c41a;
}

.strength-bar.very-strong {
    background-color: #1890ff;
}

.strength-text {
    font-size: 0.75rem;
    color: var(--accents-5);
}

.password-requirements {
    display: none;
    position: absolute;
    top: 0;
    left: calc(100% + 10px);
    width: 250px;
    background: white;
    border: 1px solid var(--accents-2);
    border-radius: var(--radius);
    padding: 0.75rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    z-index: 100;
    font-size: 0.75rem;
    line-height: 1.4;
}

.password-container:focus-within .password-requirements {
    display: block;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.5rem;
    margin-bottom: 0.25rem;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.requirement:last-child {
    margin-bottom: 0;
}

.requirement.valid {
    background-color: rgba(82, 196, 26, 0.08);
    color: #52c41a;
}

.requirement-icon {
    font-size: 1rem;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.requirement.valid .requirement-icon {
    opacity: 1;
}

/* Add a small arrow to the dialog */
.password-requirements::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 15px;
    width: 10px;
    height: 10px;
    background: white;
    border-left: 1px solid var(--accents-2);
    border-bottom: 1px solid var(--accents-2);
    transform: rotate(45deg);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .password-requirements {
        left: 0;
        right: 0;
        top: calc(100% + 5px);
        width: auto;
    }

    .password-requirements::before {
        left: 20px;
        top: -6px;
        border-left: 1px solid var(--accents-2);
        border-top: 1px solid var(--accents-2);
        border-bottom: none;
    }
}

/* Remove unused styles */
.password-toggle-container,
.password-toggle-link,
.password-toggle-link:hover,
.password-toggle-link i,
.password-toggle-link.active i {
    display: none;
}

/* Shepherd.js Tour Styles */
.shepherd-theme-custom {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.shepherd-theme-custom .shepherd-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--accents-2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shepherd-theme-custom .shepherd-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--geist-foreground);
}

.shepherd-theme-custom .shepherd-text {
    padding: 16px 20px;
    font-size: 0.95rem;
    color: var(--accents-6);
    line-height: 1.5;
}

.shepherd-theme-custom .shepherd-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--accents-2);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.shepherd-theme-custom .shepherd-button {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.shepherd-theme-custom .shepherd-button-primary {
    background-color: var(--primary);
    color: white;
    border: none;
}

.shepherd-theme-custom .shepherd-button-primary:hover {
    background-color: var(--primary-dark);
}

.shepherd-theme-custom .shepherd-button-secondary {
    background-color: var(--accents-1);
    color: var(--accents-6);
    border: 1px solid var(--accents-3);
}

.shepherd-theme-custom .shepherd-button-secondary:hover {
    background-color: var(--accents-2);
}

.shepherd-theme-custom .shepherd-cancel-icon {
    color: var(--accents-5);
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

.shepherd-theme-custom .shepherd-cancel-icon:hover {
    color: var(--geist-foreground);
}

/* Form highlight for tour */
.form-highlight {
    position: relative;
    z-index: 100;
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.3);
    border-radius: 4px;
    transition: box-shadow 0.3s ease;
}

/* RTL Support */
[dir="rtl"] .btn-register i {
    transform: rotate(180deg);
}

[dir="rtl"] .btn-register:hover i {
    transform: rotate(180deg) translateX(-3px);
}

[dir="rtl"] #prevStep i {
    transform: rotate(180deg);
}

[dir="rtl"] #prevStep:hover i {
    transform: rotate(180deg) translateX(3px);
}

.password-match-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    margin-top: 8px;
    transition: all 0.3s ease;
    background-color: rgba(82, 196, 26, 0.1);
    color: #52c41a;
}

.password-match-indicator i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.password-match-indicator.error {
    background-color: rgba(255, 77, 79, 0.1);
    color: #ff4d4f;
}

.password-match-indicator.error i {
    transform: scale(1.1);
}

.password-match-indicator.success {
    background-color: rgba(82, 196, 26, 0.1);
    color: #52c41a;
}

.password-match-indicator.success i {
    transform: scale(1.1);
}

.password-match-indicator span {
    font-weight: 500;
}

@media (max-width: 768px) {
    .password-match-indicator {
        padding: 6px 10px;
        font-size: 13px;
    }

    .password-match-indicator i {
        font-size: 16px;
    }
}

/* RTL Support - Global Adjustments */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .form-label {
    text-align: right;
}

[dir="rtl"] .section-title {
    flex-direction: row-reverse;
}

[dir="rtl"] .password-requirements {
    left: auto;
    right: calc(100% + 10px);
}

[dir="rtl"] .password-requirements::before {
    left: auto;
    right: -6px;
    transform: rotate(135deg);
}

/* RTL Navigation Buttons */
[dir="rtl"] .btn-register i,
[dir="rtl"] #nextStep i {
    transform: scaleX(-1);
    margin-right: 0;
    margin-left: 0;
}

[dir="rtl"] .btn-register:hover i,
[dir="rtl"] #nextStep:hover i {
    transform: scaleX(-1) translateX(-3px);
}

[dir="rtl"] #prevStep i {
    transform: scaleX(-1);
    margin-right: 0;
    margin-left: 0;
}

[dir="rtl"] #prevStep:hover i {
    transform: scaleX(-1) translateX(3px);
}

/* RTL Input Group and Form Elements */
[dir="rtl"] .input-group .form-control {
    text-align: right;
}

[dir="rtl"] .password-toggle-icon {
    right: auto;
    left: 10px;
}

[dir="rtl"] select.form-control {
    background-position: left var(--gap) center;
    padding-right: var(--gap);
    padding-left: var(--gap-double);
}

/* RTL Requirements and Validation */
[dir="rtl"] .requirement {
    flex-direction: row-reverse;
}

[dir="rtl"] .requirement-icon {
    margin-left: 0;
    margin-right: 0;
}

[dir="rtl"] .password-match-indicator {
    flex-direction: row-reverse;
}

/* RTL Progress Steps */
[dir="rtl"] .progress-step {
    flex-direction: column;
    /* Keep vertical even in RTL */
}

/* RTL Mobile Adjustments */
@media (max-width: 768px) {
    [dir="rtl"] .password-requirements {
        right: 0;
        left: 0;
    }

    [dir="rtl"] .password-requirements::before {
        right: 20px;
        left: auto;
        transform: rotate(-45deg);
        border-right: 1px solid var(--accents-2);
        border-top: 1px solid var(--accents-2);
        border-left: none;
        border-bottom: none;
    }

    [dir="rtl"] .form-navigation {
        flex-direction: column-reverse;
    }
}

/* RTL Logo Upload */
[dir="rtl"] .logo-upload-content {
    direction: rtl;
}

/* Captcha Container Styles */
.captcha-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.captcha-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accents-1);
    border: 1px solid var(--accents-2);
    border-radius: var(--radius);
    overflow: hidden;
    padding: 5px;
    min-height: 70px;
    transition: all 0.3s ease;
}

.captcha-box:hover {
    border-color: var(--accents-4);
}

.captcha-box:focus-within {
    border-color: var(--geist-foreground);
    box-shadow: 0 0 0 2px rgba(0, 86, 136, 0.15);
}

.captcha-box img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.captcha-refresh {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--accents-2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.captcha-refresh:hover {
    background-color: white;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.captcha-refresh:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.3);
}

.captcha-refresh i {
    font-size: 20px;
    color: var(--accents-6);
    transition: transform 0.3s ease;
}

.captcha-refresh:hover i {
    transform: rotate(180deg);
    color: var(--geist-foreground);
}

.captcha-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.captcha-input-group .form-control {
    padding: 10px 14px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 2px;
    text-align: center;
    border: 1px solid var(--accents-2);
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.captcha-input-group .form-control:focus {
    border-color: var(--geist-foreground);
    box-shadow: 0 0 0 2px rgba(0, 86, 136, 0.15);
}

.captcha-input-group .form-text {
    font-size: 12px;
    color: var(--accents-5);
    text-align: center;
    margin-top: 4px;
}

/* RTL Support for Captcha */
[dir="rtl"] .captcha-refresh {
    right: auto;
    left: 8px;
}

/* Mobile responsive adjustments for captcha */
@media (max-width: 576px) {
    .captcha-container {
        gap: 8px;
    }
    
    .captcha-box {
        min-height: 60px;
    }
    
    .captcha-refresh {
        width: 32px;
        height: 32px;
    }
    
    .captcha-refresh i {
        font-size: 18px;
    }
    
    .captcha-input-group .form-control {
        padding: 8px 12px;
        font-size: 14px;
    }
}