@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #2596be;
    --primary-gradient: linear-gradient(135deg, #2596be 0%, #45b5d8 100%);
    --secondary-color: #1a708f;
    --text-dark: #1a1a1a;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
}

body {
    background-color: #f8fafc;
    font-family: 'Outfit', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

.login-page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Animated Background */
.auth-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #f8fafc;
}

.auth-bg-blob {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.6;
    animation: blobify 12s infinite alternate;
}

.auth-bg-blob-1 {
    width: 400px;
    height: 400px;
    background: #2596be;
    top: -100px;
    right: -100px;
}

.auth-bg-blob-2 {
    width: 350px;
    height: 350px;
    background: #45b5d8;
    bottom: -50px;
    left: -50px;
    animation-delay: -4s;
}

.auth-bg-blob-3 {
    width: 250px;
    height: 250px;
    background: #60c5e6;
    top: 40%;
    left: 15%;
    animation-delay: -7s;
}

@keyframes blobify {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.2) translate(50px, 30px);
    }
}

.login-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.login-card {
    padding: 50px 40px;
    width: 100%;
    max-width: 460px;
    transition: transform 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.main-logo {
    max-width: 160px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    text-align: center;
}

.login-subtitle {
    color: var(--secondary-color);
    font-size: 15px;
    text-align: center;
    margin-bottom: 35px;
    opacity: 0.8;
}

/* Form Styling */
.form-label-modern {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 8px;
    margin-left: 4px;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 18px;
    color: #94a3b8;
    font-size: 16px;
    transition: color 0.3s ease;
}

.form-control-modern {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.form-control-modern:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 150, 190, 0.1);
}

.form-control-modern:focus+i {
    color: var(--primary-color);
}

.forgot-password.modern {
    text-align: right;
    margin-bottom: 25px;
}

.forgot-password.modern a {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s;
}

.forgot-password.modern a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.btn-login-modern {
    width: 100%;
    padding: 14px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 14px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 150, 190, 0.25);
    transition: all 0.3s ease;
}

.btn-login-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 150, 190, 0.35);
}

.btn-login-modern i {
    transition: transform 0.3s ease;
}

.btn-login-modern:hover i {
    transform: translateX(4px);
}

.register-link-modern {
    margin-top: 30px;
    text-align: center;
    font-size: 14px;
    color: #64748b;
}

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

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

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.animate-fade-down {
    animation: fadeInDown 0.6s ease forwards;
}

.animate-fade-up {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.register-container {
    padding: 40px 20px;
    max-width: 580px;
    margin: 0 auto;
}

/* Stepper */
.stepper {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 150px;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: 2px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #1a708f;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.step.active .step-number {
    background: #2596be;
    border-color: #2596be;
    color: white;
}

.step.completed .step-number {
    background: #2596be;
    border-color: #2596be;
    color: white;
}

.step-label {
    font-size: 13px;
    color: #1a708f;
    font-weight: 500;
}

.step.active .step-label {
    color: #2596be;
}

.step-line {
    position: absolute;
    top: 18px;
    left: 50%;
    right: -50%;
    height: 2px;
    background: #dee2e6;
    z-index: 1;
}

.step:last-child .step-line {
    display: none;
}

.step.completed .step-line {
    background: #2596be;
}

/* Card */
.register-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 30px;
}

.back-button {
    color: #2596be;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
}

.back-button:hover {
    color: #1a708f;
}

.card-logo {
    text-align: right;
    margin-bottom: 24px;
}

.card-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2596be 0%, #45b5d8 100%);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
}

.card-logo-text {
    display: inline-block;
    color: #2596be;
    font-size: 16px;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
}

.card-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.card-subtitle {
    color: #1a708f;
    font-size: 16px;
    margin-bottom: 32px;
}

.form-label {
    color: #1a1a1a;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 8px;
}

.form-label .text-danger {
    color: #dc3545;
}

.form-control,
.form-select {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 14px;
}

.form-control:focus,
.form-select:focus {
    border-color: #2596be;
    box-shadow: 0 0 0 0.2rem rgba(26, 115, 168, 0.15);
}

.input-group-text {
    background: white;
    border: 1px solid #dee2e6;
    border-right: none;
    color: #1a708f;
}

.input-group .form-control {
    border-left: none;
}

.password-hint {
    font-size: 12px;
    color: #1a708f;
    margin-top: 6px;
}

.btn-primary {
    background: #2596be;
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
}

.btn-primary:hover {
    background: #1a708f;
}

.login-link {
    text-align: center;
    margin-top: 24px;
    font-size: 16px;
    color: #1a708f;
}

.login-link a {
    color: #2596be;
    text-decoration: none;
    font-weight: 500;
}

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

/* Package Selection Button */
.package-select-btn {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 24px;
}

.package-select-btn:hover {
    border-color: #2596be;
    background: #f8f9fa;
}

.package-select-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.package-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.package-text {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
}

.package-selected {
    background: #f0f8ff;
    border-color: #2596be;
}

.package-selected .package-icon {
    background: linear-gradient(135deg, #2596be 0%, #45b5d8 100%);
    color: white;
}

.terms-text {
    font-size: 12px;
    color: #1a708f;
    margin-bottom: 24px;
}

.terms-text a {
    color: #2596be;
    text-decoration: none;
}

/* Modal Styles */
.modal-content {
    border-radius: 12px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    padding: 20px 24px;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.modal-body {
    padding: 24px;
}

.package-card {
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    transition: all 0.2s;
    cursor: pointer;
}

.package-card:hover {
    border-color: #2596be;
    box-shadow: 0 4px 12px rgba(26, 115, 168, 0.15);
}

.package-header {
    text-align: center;
    margin-bottom: 20px;
}

.package-icon-modal {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 12px;
}

.package-icon-modal.starter {
    background: #e3f2fd;
    color: #1976d2;
}

.package-icon-modal.professional {
    background: #e8f5e9;
    color: #388e3c;
}

.package-icon-modal.enterprise {
    background: #fff3e0;
    color: #f57c00;
}

.package-price {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.package-period {
    font-size: 13px;
    color: #1a708f;
}

.package-name {
    font-size: 16px;
    font-weight: 600;
    color: #2596be;
    margin-bottom: 8px;
}

.package-description {
    font-size: 13px;
    color: #1a708f;
    margin-bottom: 20px;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.package-features li {
    font-size: 13px;
    color: #495057;
    padding: 6px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.package-features li i {
    color: #2596be;
    margin-top: 2px;
}

.btn-select-package {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
}

.step-content {
    display: none;
}

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

.payment-method-card {
    cursor: pointer;
    transition: all 0.2s;
}

.payment-method-card:hover {
    border-color: #2596be !important;
    background-color: #f8f9fa;
}

.payment-method-card:has(input:checked) {
    border-color: #2596be !important;
    background-color: #e7f3ff;
}

/* Language Selector Styles */
.language-selector {
    position: relative;
}

.language-selector .btn {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 8px 16px;
    color: #2596be;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.language-selector .btn:hover {
    border-color: #2596be;
    background: #f8f9fa;
}

.language-selector .btn i {
    font-size: 16px;
    color: #1a708f;
}

.language-selector .dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
    padding: 8px 0;
    min-width: 200px;
}

.language-selector .dropdown-item {
    padding: 10px 16px;
    font-size: 14px;
    color: #1a1a1a;
    transition: all 0.2s;
}

.language-selector .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #2596be;
}

.language-selector .dropdown-item img {
    object-fit: cover;
    border-radius: 2px;
}

.language-selector .dropdown-item i.bx-check-circle {
    font-size: 16px;
}

@media (max-width: 768px) {
    .logo-container>div {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start !important;
    }

    .language-selector {
        width: 100%;
    }

    .language-selector .btn {
        width: 100%;
        justify-content: space-between;
    }
}

/* Auth Layout Enhancements */
.auth-page-root {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-top-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 8px 16px;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.glass-dropdown {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden;
    padding: 8px !important;
}

.glass-dropdown .dropdown-item {
    border-radius: 10px;
    padding: 10px 15px;
    font-weight: 500;
    color: var(--text-dark);
}

.glass-dropdown .dropdown-item:hover {
    background: var(--primary-color) !important;
    color: white !important;
}

/* Responsive adjustment for top nav */
@media (max-width: 768px) {
    .auth-top-nav .container-fluid {
        padding: 15px 20px !important;
    }

    .auth-logo-brand img {
        max-height: 30px !important;
    }
}

/* General Card Glassmorphism for Auth */
.auth-page-root .card {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
}

/* Global Auth Components Overrides */
.auth-page-root .form-control,
.auth-page-root .form-select {
    border-radius: 12px;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    transition: all 0.3s ease;
    background-color: white;
}

.auth-page-root .form-control:focus,
.auth-page-root .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 150, 190, 0.1);
}

.auth-page-root .btn-primary {
    background: var(--primary-gradient);
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(37, 150, 190, 0.2);
    transition: all 0.3s ease;
}

.auth-page-root .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 150, 190, 0.3);
    background: var(--primary-gradient);
    opacity: 0.9;
}

.auth-page-root .form-label {
    font-weight: 600;
    color: #4b5563;
    margin-left: 2px;
}

/* Stepper Modernization */
.auth-page-root .step-number {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.auth-page-root .step.active .step-number {
    background: var(--primary-color);
    box-shadow: 0 4px 15px rgba(37, 150, 190, 0.3);
}

/* Login Container - offset from auth-top-nav (approx 70px) */
.auth-page-root .login-container {
    min-height: 100vh;
    padding-top: 80px;
    padding-bottom: 40px;
}

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 32px;
}

/* Override Bootstrap .btn + .btn-login-modern */
.btn.btn-login-modern {
    width: 100%;
    padding: 14px !important;
    background: var(--primary-gradient) !important;
    border: none !important;
    border-radius: 14px !important;
    color: white !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(37, 150, 190, 0.25) !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.btn.btn-login-modern:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(37, 150, 190, 0.35) !important;
    color: white !important;
    background: var(--primary-gradient) !important;
}

.btn.btn-login-modern i {
    transition: transform 0.3s ease;
}

.btn.btn-login-modern:hover i {
    transform: translateX(4px);
}