/* Global Variables */
:root {
    --primary-color: #4b5fb9;
    --secondary-color: #2b658a;
    --gradient-primary: linear-gradient(135deg, #4b5fb9 0%, #6b7fdb 100%);
    --gradient-secondary: linear-gradient(135deg, #ffb642 0%, #ffc55a 100%);
    --gradient-mixed: linear-gradient(135deg, #4b5fb9 0%, #2b658a 100%);
    --dark-bg: #0a0e27;
    --card-bg: rgba(255, 255, 255, 0.98);
    --text-primary: #1a1f36;
    --text-secondary: #6b7c93;
    --border-color: #e3e8ee;
    --error-color: #ef4444;
    --success-color: #10b981;
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 100px rgba(75, 95, 185, 0.3);
}

@font-face { font-family: BalooBhaijaan; src: url('../../assets/fonts/BalooBhaijaan2.ttf'); font-display: swap; }

/* Reset & Base */
* {
    font-family: 'BalooBhaijaan', 'Roboto', sans-serif !important;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: 'BalooBhaijaan', 'Roboto', sans-serif !important;
    overflow-x: hidden;
    background: var(--dark-bg);
}

/* Container */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    margin-bottom: 30px;
}

/* Animated Background */
.auth-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.animated-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0e27 0%, #151b3d 100%);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--gradient-primary);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: var(--gradient-secondary);
    bottom: -300px;
    right: -300px;
    animation-delay: 5s;
}

.orb-3 {
    width: 500px;
    height: 500px;
    background: var(--gradient-mixed);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -50px) scale(1.1); }
    50% { transform: translate(-50px, 50px) scale(0.9); }
    75% { transform: translate(30px, 30px) scale(1.05); }
}

/* Auth Card */
.auth-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    z-index: 10;
}

.auth-card.register-card {
    max-width: 720px;
}

.auth-card.forgot-card {
    max-width: 480px;
}

.card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-mixed);
    border-radius: 24px;
    opacity: 0.5;
    filter: blur(20px);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.01); }
}

.card-content {
    position: relative;
    background: var(--card-bg);
    border-radius: 24px;
    padding: 48px;
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(20px);
    box-shadow: 0 0 10px white;
}

/* Logo */
.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.logo-wrapper {
    position: relative;
}

.logo {
    width: 250px;
    height: auto;
    position: relative;
    z-index: 1;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    /*background: var(--gradient-mixed);*/
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
    animation: pulse-glow 3s ease-in-out infinite;
}

/* Typography */
.auth-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 8px;
    background: var(--gradient-mixed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 32px;
}

/* Form Groups */
.auth-form {
    width: 100%;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.form-input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(75, 95, 185, 0.1);
}

.form-input:not(:placeholder-shown) + .form-label,
.form-input:focus + .form-label {
    top: -10px;
    left: 12px;
    font-size: 12px;
    background: white;
    padding: 0 8px;
    color: var(--primary-color);
}

.form-label {
    position: absolute;
    top: 50%;
    left: 48px;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 14px;
    pointer-events: none;
    transition: all 0.3s ease;
    background: transparent;
}

.form-label.select-label {
    top: -10px;
    left: 12px;
    font-size: 12px;
    background: white;
    padding: 0 8px;
    color: var(--primary-color);
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    transition: color 0.3s ease;
    font-size: 20px;
}

.input-wrapper:focus-within .input-icon {
    color: var(--primary-color);
}

.input-focus-effect {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 95%;
    height: 2px;
    background: var(--gradient-mixed);
    transition: transform 0.3s ease;
    border-radius: 0 0 12px 12px;
}

.input-wrapper:focus-within .input-focus-effect {
    transform: translateX(-50%) scaleX(1);
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 4px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--primary-color);
}

/* Error Messages */
.error-message {
    display: block;
    color: var(--error-color);
    font-size: 12px;
    margin-top: 4px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* Checkbox */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
}

.checkbox-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.forgot-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-google, .btn-nav {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(75, 95, 185, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(75, 95, 185, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-google {
    background: white;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.btn-google:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.btn-nav {
    width: auto;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-prev {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}

.btn-next {
    background: var(--gradient-primary);
    color: white;
    margin-left: auto;
}

/* Button Loader */
.btn-loader {
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Divider */
.divider {
    position: relative;
    text-align: center;
    margin: 24px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    position: relative;
    background: var(--card-bg);
    padding: 0 16px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-secondary);
    font-size: 14px;
}

.link-primary {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.link-primary:hover {
    color: var(--secondary-color);
}

/* Steps Progress */
.steps-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

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

.step-number {
    width: 40px;
    height: 40px;
    margin: 0 auto 8px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
}

.step.active .step-number {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

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

.step-title {
    font-size: 12px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

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

.step-warning {
    position: absolute;
    top: -5px;
    right: 22px;
    width: 20px;
    height: 20px;
    background: var(--error-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    animation: pulse-warning 1s ease-in-out infinite;
}

@keyframes pulse-warning {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Multi-Step Form */
.multi-step-form {
    position: relative;
}

.form-step {
    display: none;
    animation: slideIn 0.4s ease;
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-heading {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.step-subtitle {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Account Type Cards */
.account-type-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.account-card {
    position: relative;
    cursor: pointer;
}

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

.card-inner {
    padding: 8px 32px;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    overflow: hidden;
}

.account-card input[type="radio"]:checked + .card-inner {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(75, 95, 185, 0.05) 0%, rgba(255, 182, 66, 0.05) 100%);
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(75, 95, 185, 0.2);
}

.card-icon {
    margin-bottom: 0;
}

.card-inner h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.card-inner p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.card-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--border-color);
    color: var(--text-secondary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.account-card input[type="radio"]:checked + .card-inner .card-badge {
    background: var(--gradient-primary);
    color: white;
}

/* File Upload */
.file-upload-wrapper {
    display: block;
    cursor: pointer;
}

.file-input {
    display: none;
}

.file-upload-box {
    padding: 32px;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    background: rgba(75, 95, 185, 0.02);
}

.file-upload-box.small {
    padding: 24px;
}

.file-upload-wrapper:hover .file-upload-box {
    border-color: var(--primary-color);
    background: rgba(75, 95, 185, 0.05);
}

.file-text {
    display: block;
    margin-top: 12px;
    color: var(--text-secondary);
    font-size: 14px;
}

.file-name {
    display: block;
    margin-top: 8px;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
}

/* Upload Grid */
.upload-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

/* Verification */
.verification-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.verification-card {
    cursor: pointer;
}

.verification-card input[type="radio"] {
    display: none;
}

.verification-inner {
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    background: white;
}

.verification-card input[type="radio"]:checked + .verification-inner {
    border-color: var(--primary-color);
    background: rgba(75, 95, 185, 0.05);
}

.verification-icon {
    font-size: 24px;
}

.skip-verification {
    margin-top: 24px;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    gap: 5px
}

/* Forgot Password Icon */
.forgot-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.forgot-icon {
    animation: float-icon 3s ease-in-out infinite;
}

@keyframes float-icon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Success Message */
.success-message {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--success-color);
    border-radius: 12px;
    padding: 20px;
    margin-top: 24px;
    text-align: center;
}

.success-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background: var(--success-color);
    border-radius: 50%;
    margin-bottom: 12px;
    color: white;
}

.success-message p {
    color: var(--success-color);
    font-weight: 500;
}

/* Input Action Button - Update Button */
.input-action-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #ffb239 0%, #e6a53b 100%);
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(75, 95, 185, 0.25);
    text-transform: none;
    letter-spacing: 0.5px;
    min-width: 70px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-action-btn:hover {
    background: linear-gradient(135deg, #f1ab3d 0%, #d89b35 100%);
    box-shadow: 0 4px 16px rgba(75, 95, 185, 0.35);
    transform: translateY(-50%) translateY(-1px);
}

.input-action-btn:active {
    transform: translateY(-50%) translateY(0px);
    box-shadow: 0 2px 8px rgba(75, 95, 185, 0.25);
}

.input-action-btn:focus {
    outline: none;
    box-shadow: 0 2px 8px rgba(75, 95, 185, 0.25), 0 0 0 3px rgba(75, 95, 185, 0.15);
}

.input-action-btn:disabled {
    background: linear-gradient(135deg, #9ca3af 0%, #d1d5db 100%);
    cursor: not-allowed;
    box-shadow: none;
    transform: translateY(-50%);
}

/* Make sure the input wrapper has relative positioning */
.input-wrapper {
    position: relative;
}

/* Add some right padding to the input so text doesn't overlap the button */
.input-wrapper .form-input {
    padding-right: 90px;
}

#language_switcher{
    position: fixed;
    z-index: 12;
    top: 10px;
    right: 15px;
    & a{
        background: white;
        color: #404040;
        border: 1px solid #ccc;
        padding: 6px 12px;
        border-radius: 6px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        cursor: pointer;
        text-decoration: none;
        font-weight: bolder;
        & img{
            width: 18px;
            height: 12px;
        }
    }
}
/* Hide the checkbox */
.account-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Selected card state - primary background */
.account-card input[type="checkbox"]:checked ~ .card-inner {
    background: var(--gradient-primary);
}

/* Selected card text color */
.account-card input[type="checkbox"]:checked ~ .card-inner h4,
.account-card input[type="checkbox"]:checked ~ .card-inner p,
.account-card input[type="checkbox"]:checked ~ .card-inner .card-icon {
    color: white;
}

/* Hide "Select" badge by default */
.account-card .card-badge {
    /*display: none;*/
}

/* Show "Selected" badge when checked */
.account-card input[type="checkbox"]:checked ~ .card-inner .card-badge {
    display: block;
    background: white;
    color: var(--primary-color);
}
/* Add pseudo-element for gradient overlay */
.account-card .card-inner {
    position: relative;
    transition: transform 0.2s ease;
}

.account-card .card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

/* Show gradient overlay when checked */
.account-card input[type="checkbox"]:checked ~ .card-inner::before {
    opacity: 1;
}

/* Remove the direct background change */
.account-card input[type="checkbox"]:checked ~ .card-inner {
    background: transparent;
}
/* Style checkboxes in pricing tables (Step 2) */
#pricingInfoContainer input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    background: white;
}

#pricingInfoContainer input[type="checkbox"]:hover {
    border-color: var(--primary-color);
}

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

#pricingInfoContainer input[type="checkbox"]:checked::before {
    content: '✓';
    position: absolute;
    top: 2px;
    left: 2px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .input-action-btn {
        padding: 6px 12px;
        font-size: 12px;
        min-width: 60px;
        height: 28px;
        right: 10px;
    }

    .input-wrapper .form-input {
        padding-right: 80px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .card-content {
        padding: 32px 24px;
    }

    .auth-title {
        font-size: 28px;
    }

    .account-type-cards {
        grid-template-columns: 1fr;
    }

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

    .verification-options {
        grid-template-columns: 1fr;
    }

    .upload-grid {
        grid-template-columns: 1fr;
    }

    .steps-container {
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .step-title {
        font-size: 10px;
    }
}
