.signup-flow {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f8fafc;
    padding-top: 80px;
    padding-bottom: 40px;
    padding-left: 16px;
    padding-right: 16px;
}

.signup-flow.signup-split {
    padding: 0;
    padding-top: 60px;
    flex-direction: row;
    align-items: stretch;
}

.signup-split .signup-carousel {
    position: fixed;
    top: 60px;
    bottom: 0;
    width: 50%;
    overflow: hidden;
    background: #0f172a;
}

html[dir="rtl"] .signup-split .signup-carousel {
    right: 0;
}

html[dir="ltr"] .signup-split .signup-carousel {
    left: 0;
}

.signup-carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    will-change: opacity;
}

.signup-carousel-slide.active {
    opacity: 1;
}

.signup-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.signup-carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(15, 23, 42, 0.85) 0%,
        rgba(15, 23, 42, 0.3) 40%,
        rgba(15, 23, 42, 0.05) 100%
    );
    pointer-events: none;
}

.signup-carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 48px 40px;
    color: #fff;
    z-index: 2;
}

.signup-carousel-content h2 {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.signup-carousel-content p {
    font-size: 15px;
    margin: 0;
    opacity: 0.8;
    line-height: 1.6;
    max-width: 380px;
}

.signup-carousel-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.signup-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.signup-carousel-dot.active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

.signup-split .signup-form-side {
    width: 50%;
    min-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    overflow-y: auto;
}

html[dir="rtl"] .signup-split .signup-form-side {
    margin-right: 50%;
}

html[dir="ltr"] .signup-split .signup-form-side {
    margin-left: 50%;
}

.signup-steps {
    width: 100%;
    max-width: 560px;
    margin-bottom: 32px;
}

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

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

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e2e8f0;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.step.active .step-number {
    background-color: #21209C;
    color: #ffffff;
}

.step.completed .step-number {
    background-color: #059669;
    color: #ffffff;
}

.step-label {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 8px;
    font-weight: 500;
    white-space: nowrap;
}

.step.active .step-label {
    color: #21209C;
}

.step.completed .step-label {
    color: #059669;
}

.step-line {
    width: 48px;
    height: 2px;
    background-color: #e2e8f0;
    margin: 0 8px;
    margin-bottom: 20px;
    transition: background-color 0.2s ease;
}

.step-line.completed {
    background-color: #059669;
}

.signup-card {
    width: 100%;
    max-width: 480px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
    padding: 32px;
    border: 1px solid #e2e8f0;
}

.signup-header {
    text-align: center;
    margin-bottom: 24px;
}

.signup-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
}

.signup-header p {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.signup-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 6px;
}

.signup-form input[type="text"],
.signup-form input[type="email"],
.signup-form input[type="password"],
.signup-form input[type="tel"],
.signup-form input[type="url"],
.signup-form input[type="number"],
.signup-form select,
.signup-form textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    color: #0f172a;
    background-color: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.signup-form input::placeholder,
.signup-form textarea::placeholder {
    color: #94a3b8;
}

.signup-form input:focus,
.signup-form select:focus,
.signup-form textarea:focus {
    border-color: #21209C;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.signup-form textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 8px;
}

.form-actions .btn-primary,
.signup-form .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background-color: #21209C;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
    line-height: 1.4;
}

.form-actions .btn-primary:hover,
.signup-form .btn-primary:hover {
    background-color: #1a1a7d;
}

.form-actions .btn-outline,
.signup-form .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    background-color: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
    text-decoration: none;
    line-height: 1.4;
}

.form-actions .btn-outline:hover,
.signup-form .btn-outline:hover {
    border-color: #cbd5e1;
    color: #0f172a;
}

.signup-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #94a3b8;
}

.signup-footer a {
    color: #21209C;
    text-decoration: none;
    font-weight: 600;
}

.signup-footer a:hover {
    text-decoration: underline;
}

.alert {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.alert-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.review-section {
    margin-bottom: 20px;
}

.review-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.review-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    font-size: 13px;
}

.review-item span:first-child {
    color: #94a3b8;
    font-weight: 500;
}

.review-item span:last-child {
    color: #0f172a;
    font-weight: 500;
    text-align: right;
}

.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    background-color: #f8fafc;
    border: 1.5px dashed #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.file-upload-label:hover {
    border-color: #21209C;
    background-color: #f1f5f9;
}

.success-card {
    width: 100%;
    max-width: 480px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
    padding: 40px 32px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #ecfdf5;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 28px;
}

.success-card h1 {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
}

.success-card p {
    font-size: 14px;
    color: #94a3b8;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.success-actions .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background-color: #21209C;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
}

.success-actions .btn-primary:hover {
    background-color: #1a1a7d;
}

.success-actions .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    background-color: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
    text-decoration: none;
}

.success-actions .btn-outline:hover {
    border-color: #cbd5e1;
    color: #0f172a;
}

.success-info {
    background-color: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    text-align: left;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 13px;
}

.info-item:not(:last-child) {
    border-bottom: 1px solid #f1f5f9;
}

.info-item span:first-child {
    color: #94a3b8;
    font-weight: 500;
}

.info-item span:last-child {
    color: #0f172a;
    font-weight: 600;
}

.quick-login-btn img,
.quick-login-btn svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .signup-flow {
        padding-top: 64px;
        padding-bottom: 32px;
    }

    .step-number {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .step-label {
        font-size: 11px;
    }

    .step-line {
        width: 32px;
    }

    .signup-card,
    .success-card {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .signup-flow {
        padding-top: 56px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .step-label {
        display: none;
    }

    .step-line {
        margin-bottom: 0;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .signup-card,
    .success-card {
        padding: 20px;
        border-radius: 12px;
    }

    .signup-header h1,
    .success-card h1 {
        font-size: 20px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn-primary,
    .form-actions .btn-outline {
        width: 100%;
    }

    .review-item {
        flex-direction: column;
        gap: 2px;
    }

    .review-item span:last-child {
        text-align: left;
    }
}

@media (max-width: 960px) {
    .signup-flow.signup-split {
        flex-direction: column;
        padding-top: 60px;
    }

    .signup-split .signup-carousel {
        position: relative;
        top: 0;
        width: 100%;
        height: 280px;
    }

    html[dir="rtl"] .signup-split .signup-carousel,
    html[dir="ltr"] .signup-split .signup-carousel {
        right: auto;
        left: auto;
    }

    .signup-split .signup-form-side {
        width: 100%;
        min-height: auto;
        padding: 32px 16px 40px;
    }

    html[dir="rtl"] .signup-split .signup-form-side,
    html[dir="ltr"] .signup-split .signup-form-side {
        margin-right: 0;
        margin-left: 0;
    }

    .signup-carousel-content h2 {
        font-size: 22px;
    }

    .signup-carousel-content {
        padding: 24px 24px;
    }
}

@media (max-width: 480px) {
    .signup-split .signup-carousel {
        height: 200px;
    }

    .signup-carousel-content h2 {
        font-size: 18px;
    }

    .signup-carousel-content p {
        font-size: 13px;
    }
}
