* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-glow: rgba(99, 102, 241, 0.5);
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --card-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] {
    --primary: #818cf8;
    --primary-dark: #6366f1;
    --primary-light: #a5b4fc;
    --text-dark: #f8fafc;
    --text-light: #94a3b8;
    --bg-light: #0f172a;
    --white: #1e293b;
    --border: #334155;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(51, 65, 85, 0.5);
    --card-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
}

[data-theme="dark"] body {
    background: #1e1e2d;
}

/* Left Panel */
.left-panel {
    flex: 1;
    background: radial-gradient(
        circle at top left,
        var(--white),
        var(--bg-light)
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .left-panel {
    background: radial-gradient(circle at top left, #1e293b, #0f172a);
}

.logo {
    position: absolute;
    top: 3rem;
    left: 3rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    z-index: 10;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.25rem;
    box-shadow: 0 8px 16px var(--primary-glow);
}

.illustration {
    max-width: 550px;
    width: 90%;
    height: auto;
    position: relative;
    z-index: 5;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.illustration svg {
    width: 100%;
    height: auto;
}

/* Floating shapes */
.shape {
    position: absolute;
    border-radius: 50%;
    animation: floatShape 8s ease-in-out infinite;
}

.shape-1 {
    width: 20px;
    height: 20px;
    background: #696cff;
    top: 10%;
    left: 15%;
    animation-delay: 0s;
}

.shape-2 {
    width: 15px;
    height: 15px;
    background: #16b1ff;
    top: 70%;
    left: 25%;
    animation-delay: 2s;
}

.shape-3 {
    width: 25px;
    height: 25px;
    background: #ff4c51;
    bottom: 20%;
    right: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 18px;
    height: 18px;
    background: #ff4c51;
    top: 25%;
    right: 15%;
    animation-delay: 1s;
}

.shape-5 {
    width: 12px;
    height: 12px;
    background: #16b1ff;
    bottom: 35%;
    left: 10%;
    animation-delay: 3s;
}

@keyframes floatShape {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -50px) rotate(5deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
}

.bg-blob-1,
.bg-blob-2 {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.15;
    animation: floatShape 15s infinite alternate ease-in-out;
}

[data-theme="dark"] .bg-blob-1,
[data-theme="dark"] .bg-blob-2 {
    opacity: 0.1;
}

.bg-blob-1 {
    top: -100px;
    left: -100px;
    background: var(--primary);
}

.bg-blob-2 {
    bottom: -100px;
    right: -100px;

    animation-delay: -5s;
}

/* Right Panel */
.right-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    background: var(--bg-light);
}

.form-container {
    width: 100%;
    max-width: 500px;
    z-index: 5;
}

/* Progress Steps */
.steps-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.steps-header::before {
    content: "";
    position: absolute;
    top: 30px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    cursor: pointer;
    transition: all 0.3s;
}

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--white);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.8rem;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.step.active .step-icon {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(105, 108, 255, 0.3);
}

.step.completed .step-icon {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.step-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    color: var(--text-dark);
}

.step-subtitle {
    font-size: 0.85rem;
    color: var(--text-light);
}

.step.active .step-title {
    color: var(--primary);
}

/* Form Content */
.form-content,
.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

[data-theme="dark"] .form-content,
[data-theme="dark"] .login-card {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-step.active {
    display: block;
}

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

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

.form-step h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.form-step p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--white);
    color: var(--text-dark);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
    transform: translateY(-1px);
}

[data-theme="dark"] .form-control {
    background: rgba(15, 23, 42, 0.5);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s;
}

.input-icon:hover {
    color: var(--primary);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234b465c' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Buttons */
.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-previous {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--border);
    flex: 1;
}

.btn-previous:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.btn-next,
.btn-login {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    flex: 2;
    box-shadow: 0 10px 20px -10px var(--primary-glow);
}

.btn-next:hover,
.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -10px var(--primary-glow);
    filter: brightness(1.1);
}

.btn-next:active,
.btn-login:active {
    transform: translateY(-1px);
}

.btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Success Message */
.success-message {
    text-align: center;
    display: none;
}

.success-message.show {
    display: block;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--success), #71dd37);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 2rem;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.success-message h2 {
    color: var(--success);
    margin-bottom: 1rem;
}

.login-link {
    margin-top: 2rem;
}

.login-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Buy Now Button */
.buy-now {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ff3e6c, #ff6b96);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(255, 62, 108, 0.4);
    transition: all 0.3s;
    z-index: 999;
}

.buy-now:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(255, 62, 108, 0.5);
}

/* Responsive */
@media (max-width: 1024px) {
    .left-panel {
        display: none;
    }

    .right-panel {
        flex: 1;
        background: radial-gradient(
            circle at top right,
            var(--bg-light),
            var(--white)
        );
    }

    [data-theme="dark"] .right-panel {
        background: radial-gradient(circle at top right, #0f172a, #1e293b);
    }
}

@media (max-width: 768px) {
    .right-panel {
        padding: 1.5rem;
    }

    .form-container {
        max-width: 100%;
    }

    .form-content,
    .login-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .steps-header {
        flex-direction: row;
        gap: 0.5rem;
        margin-bottom: 2rem;
    }

    .step-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .step-title {
        font-size: 0.8rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Account Type Cards */
.account-types {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.account-type-card {
    position: relative;
    border: 2px solid var(--border);
    border-radius: 15px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--white);
    display: block;
}

.account-type-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(105, 108, 255, 0.15);
}

.account-type-card.active {
    border-color: var(--primary);
    background: linear-gradient(
        135deg,
        rgba(105, 108, 255, 0.05),
        rgba(105, 108, 255, 0.02)
    );
    box-shadow: 0 8px 20px rgba(105, 108, 255, 0.15);
}

.account-type-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.account-type-content {
    position: relative;
}

.account-type-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.account-type-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: all 0.3s;
}

.account-type-card.active .account-type-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(105, 108, 255, 0.3);
}

.account-type-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.account-type-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.account-type-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
}

.feature-item {
    color: var(--text-dark);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.account-type-card.active .feature-item {
    color: var(--primary);
    font-weight: 600;
}

/* Radio button checkmark */
.account-type-card::before {
    content: "";
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-radius: 50%;
    background: var(--white);
    transition: all 0.3s;
}

.account-type-card::after {
    content: "✓";
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s;
}

.account-type-card.active::after {
    opacity: 1;
    transform: scale(1);
}

.account-type-card.active::before {
    border-color: var(--primary);
}

/* Privacy Checkbox */
.privacy-agreement {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(
        135deg,
        rgba(105, 108, 255, 0.05),
        rgba(105, 108, 255, 0.02)
    );
    border: 2px solid var(--primary);
    border-radius: 12px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.checkbox-label span {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 0.95rem;
}

.checkbox-label span a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.checkbox-label span a:hover {
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert.show {
    display: block;
}

.alert-success {
    background: rgba(86, 202, 0, 0.1);
    border: 2px solid var(--success);
    color: var(--success);
}

.alert-danger {
    background-color: rgba(255, 76, 81, 0.1);
    color: var(--danger);
    border: 2px solid var(--danger);
}

.mt-2 {
    margin-top: 0.5rem !important;
}

/*  */

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-card {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

.login-header p {
    color: var(--text-light);
    font-size: 1rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.remember-me label {
    cursor: pointer;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.forgot-password:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(105, 108, 255, 0.3);
}

.btn-login::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition:
        width 0.6s,
        height 0.6s;
}

.btn-login:hover::before {
    width: 300px;
    height: 300px;
}

.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.social-login {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.social-btn {
    padding: 0.8rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.social-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.register-link {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-light);
}

.register-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: all 0.3s;
}

.back-link:hover {
    color: var(--primary);
    transform: translateX(-5px);
}

/* Theme Toggle */
.theme-toggle {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    z-index: 100;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.sun-icon {
    display: block;
    font-size: 1.25rem;
}
.moon-icon {
    display: none;
    font-size: 1.25rem;
}

[data-theme="dark"] .sun-icon {
    display: none;
}
[data-theme="dark"] .moon-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle {
    background: #1e293b;
    border-color: #334155;
}

/* Responsive */

/*  */
