* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #F0F4FF;
    color: #1C1E45;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -3;
}

.hex-mesh {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(61,62,224,0.1) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
    animation: hexMove 25s linear infinite;
}

@keyframes hexMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(60px, 60px);
    }
}

.pulse-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(61, 62, 224, 0.08),
        rgba(61, 62, 224, 0.08) 1px,
        transparent 1px,
        transparent 20px
    );
    animation: pulseShift 10s linear infinite;
}

@keyframes pulseShift {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 100px;
    }
}

.matrix-particles div {
    position: absolute;
    width: 3px;
    height: 3px;
    background-color: #3D3EE0;
    border-radius: 50%;
    opacity: 0.6;
    animation: particleFall 10s linear infinite;
}

@keyframes particleFall {
    0% {
        transform: translateY(-10px);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

.hero-header {
    min-height: 100vh;
    position: relative;
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.floating-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: linear-gradient(45deg, #3D3EE0, #7C8CFF);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(61, 62, 224, 0.4);
    animation: float 6s ease-in-out infinite;
}

.floating-particle:nth-child(odd) {
    animation-direction: reverse;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(61, 62, 224, 0.2);
    border-radius: 20px;
    box-shadow:
        0 20px 40px rgba(61, 62, 224, 0.15),
        0 0 30px rgba(61, 62, 224, 0.08);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    max-width: 450px;
    margin: 0 auto;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(61, 62, 224, 0.1), transparent);
    transition: left 0.6s ease;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    box-shadow:
        0 30px 60px rgba(61, 62, 224, 0.2),
        0 0 50px rgba(61, 62, 224, 0.12);
    border-color: rgba(61, 62, 224, 0.3);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid rgba(61, 62, 224, 0.2);
    padding: 25px;
    text-align: center;
}

.card-header h5 {
    color: #3D3EE0;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(61, 62, 224, 0.3);
    margin: 0;
    font-size: 1.5rem;
}

.card-body {
    padding: 30px;
    position: relative;
    z-index: 1;
}

.form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(61, 62, 224, 0.3);
    border-radius: 12px;
    color: #1C1E45;
    padding: 15px 20px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(61, 62, 224, 0.1);
    width: 100%;
    /*margin-bottom: 20px;*/
}

.form-control:focus {
    background: rgba(255, 255, 255, 1);
    border-color: #3D3EE0;
    box-shadow:
        0 0 20px rgba(61, 62, 224, 0.2),
        inset 0 2px 4px rgba(61, 62, 224, 0.1);
    color: #1C1E45;
    outline: none;
}

.form-control::placeholder {
    color: #4B4D8F;
}

.combined-phone-input {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(61, 62, 224, 0.3);
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    margin-bottom: 20px;
}

.combined-phone-input:focus-within {
    background: rgba(255, 255, 255, 1);
    border-color: #3D3EE0;
    box-shadow:
        0 0 20px rgba(61, 62, 224, 0.2),
        inset 0 2px 4px rgba(61, 62, 224, 0.1);
}

.combined-phone-input select.country-code {
    background: transparent;
    border: none;
    color: #3D3EE0;
    font-weight: 600;
    font-size: 16px;
    padding: 14px 12px;
    border-right: 1px solid rgba(61, 62, 224, 0.2);
    appearance: none;
    outline: none;
    min-width: 100px;
    max-width: 120px;
    text-align: center;
    height: auto;
}

.combined-phone-input select.country-code option {
    color: #1C1E45;
    background-color: rgba(240, 244, 255, 0.95);
}

.combined-phone-input .phone-number {
    background: transparent;
    border: none;
    color: #1C1E45;
    padding: 14px 16px;
    font-size: 16px;
    outline: none;
    flex: 1;
    height: auto;
}

.combined-phone-input .phone-number::placeholder {
    color: #4B4D8F;
}

@media (max-width: 768px) {
    .hero-header {
        padding: 20px 15px;
    }
    
    .combined-phone-input select.country-code {
        font-size: 14px;
        padding: 0px;
        min-width: 85px;
        max-width: 100px;
    }

    .combined-phone-input .phone-number {
        font-size: 14px;
        padding: 12px 12px;
    }
}

.btn.bg-gradient-dark {
    background: linear-gradient(45deg, #3D3EE0, #5862F2, #7C8CFF);
    border: none;
    border-radius: 12px;
    padding: 15px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(61, 62, 224, 0.3);
    width: 100%;
    /*margin: 20px 0;*/
    color: #fff !important;
}

.btn.bg-gradient-dark::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.6s ease;
}

.btn.bg-gradient-dark:hover::before {
    left: 100%;
}

.btn.bg-gradient-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(61, 62, 224, 0.4);
    background: linear-gradient(45deg, #2A2CC3, #3D3EE0, #5862F2);
}

.form-check-input[type="checkbox"] {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid rgba(61, 62, 224, 0.3);
    border-radius: 4px;
    width: 20px;
    height: 20px;
}

.form-check-input[type="checkbox"]:checked {
    background: linear-gradient(45deg, #3D3EE0, #5862F2);
    border-color: #3D3EE0;
}

.form-check-label {
    color: #4B4D8F;
    margin-left: 10px;
}

.form-check {
    margin-bottom: 20px;
    text-align: left;
}

a.text-dark {
    color: #3D3EE0 !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

a.text-dark:hover {
    color: #5862F2 !important;
    text-shadow: 0 0 10px rgba(61, 62, 224, 0.3);
}

h1.text-white {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(45deg, #3D3EE0, #7C8CFF, #3D3EE0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(61, 62, 224, 0.3);
    margin-bottom: 20px;
    text-align: center;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%,
    100% {
        background: linear-gradient(45deg, #3D3EE0, #7C8CFF, #3D3EE0);
        -webkit-background-clip: text;
        background-clip: text;
    }
    50% {
        background: linear-gradient(45deg, #7C8CFF, #3D3EE0, #7C8CFF);
        -webkit-background-clip: text;
        background-clip: text;
    }
}

.text-lead {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
    text-align: center;
    color: #4B4D8F;
}

.container {
    text-align: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.mb-3 {
    margin-bottom: 20px !important;
}

.text-sm {
    margin-top: 20px;
    text-align: center;
    color: #4B4D8F;
}

@media (max-width: 768px) {
    .hero-header {
        padding: 15px 0;
    }

    h1.text-white {
        font-size: 2rem;
    }

    .text-lead {
        font-size: 0.9rem;
        padding: 0 20px;
    }

    .card {
        margin: 20px 15px;
        border-radius: 15px;
    }

    .card-header {
        padding: 20px;
    }

    .card-header h5 {
        font-size: 1.2rem;
    }

    .card-body {
        padding: 25px 20px;
    }

    .form-control {
        padding: 12px 15px;
        font-size: 14px;
    }

    .combined-phone-input {
        padding: 0;
    }

    .country-code {
        padding: 12px 8px;
        min-width: 100px;
        max-width: 100px;
        font-size: 13px;
    }

    .phone-number {
        padding: 12px 15px;
        font-size: 14px;
    }

    .btn.bg-gradient-dark {
        padding: 12px 25px;
        font-size: 13px;
    }

    .floating-particle {
        display: none;
    }

    .cyber-grid {
        background-size: 30px 30px;
    }
}

@media (max-width: 480px) {
    h1.text-white {
        font-size: 1.8rem;
    }

    .text-lead {
        font-size: 0.85rem;
    }

    .card-header h5 {
        font-size: 1.1rem;
    }

    .form-control {
        padding: 15px 20px;
        font-size: 13px;
    }

    .card-body {
        padding: 20px 15px;
    }

    .country-code {
        min-width: 85px;
        max-width: 85px;
        font-size: 12px;
        padding: 10px 6px;
    }

    .phone-number {
        padding: 10px 12px;
        font-size: 13px;
    }

    .btn.bg-gradient-dark {
        padding: 10px 20px;
        font-size: 12px;
    }

    .form-check-label {
        font-size: 13px;
    }

    .text-sm {
        font-size: 12px;
    }
}

.mb-3 {
    animation: slideInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.mb-3:nth-child(1) {
    animation-delay: 0.1s;
}

.mb-3:nth-child(2) {
    animation-delay: 0.2s;
}

.mb-3:nth-child(3) {
    animation-delay: 0.3s;
}

.mb-3:nth-child(4) {
    animation-delay: 0.4s;
}

.mb-3:nth-child(5) {
    animation-delay: 0.5s;
}

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

.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

html {
    scroll-behavior: smooth;
}

.form-control:focus,
.combined-phone-input:focus-within,
.btn:focus,
.form-check-input:focus {
    outline: 2px solid rgba(61, 62, 224, 0.4);
    outline-offset: 2px;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.form-check-input {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    accent-color: #3D3EE0;
}

.form-check-label {
    color: #4B4D8F;
    font-size: 14px;
}

.forget.text-center a {
    text-decoration: none;
    color: #3D3EE0;
}

.forget.text-center {
    margin-top: 15px;
}

.password-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 35%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #4B4D8F;
    transition: color 0.3s ease;
}

.password-toggle.show-password {
    color: #3D3EE0;
}

.combined-country-input {
    display: flex;
    align-items: center;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    border: 1px solid rgba(61, 62, 224, 0.3);
    padding: 15px 20px;
    box-shadow: inset 0 2px 4px rgba(61, 62, 224, 0.1);
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

.combined-country-input:focus-within {
    background: rgba(255, 255, 255, 1);
    border-color: #3D3EE0;
    box-shadow:
        0 0 20px rgba(61, 62, 224, 0.2),
        inset 0 2px 4px rgba(61, 62, 224, 0.1);
}

.combined-country-input select.country-name {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    color: #3D3EE0;
    appearance: none;
    padding-right: 24px;
    cursor: pointer;
}

.combined-country-input::after {
    content: '▼';
    font-size: 12px;
    color: #4B4D8F;
    position: relative;
    right: 20px;
    pointer-events: none;
}

.combined-country-input select.country-name option {
    color: #1C1E45;
    background-color: rgba(240, 244, 255, 0.95);
}