/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0e27;
    color: #fff;
    overflow-x: hidden;
}

.page {
    min-height: 100vh;
    position: relative;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0e27;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0e27;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.preloader img {
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

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

/* Blur wrap */
.blur_wrap {
    position: relative;
    min-height: 100vh;
    backdrop-filter: blur(10px);
}

.wrapper {
    position: relative;
    min-height: 100vh;
}

/* Particles background */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Header */
.header {
    position: relative;
    z-index: 10;
    padding: 20px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header__wrap {
    display: flex;
    justify-content: flex-end;
}

/* Main content */
.main {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 10;
    opacity: 1;
    visibility: visible;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 10;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    position: relative;
    z-index: 5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.main__wrap {
    width: 100%;
    max-width: 500px;
    text-align: center;
}

/* Logo */
.main__logo {
    display: inline-block;
    margin-bottom: 40px;
}

.main__logo img {
    max-width: 120px;
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.5));
}

/* Form container */
.main__form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 15;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.main__wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Info section */
.main__info {
    text-align: center;
}

.main__title {
    font-size: 18px;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

.main__bonus {
    font-size: 28px;
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 0;
}

.bonus {
    color: #10b981;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.ru {
    color: #fff;
}

.stroke {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Form styles */
.form {
    width: 100%;
}

.form__cover {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form__content {
    position: relative;
}

.form-group {
    position: relative;
}

.form__input {
    padding: 12px 15px;
    font-size: 14px;
    position: relative;
    z-index: 20;
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form__input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.form__input:focus + .form__placeholder,
.form__input:not(:placeholder-shown) + .form__placeholder {
    transform: translateY(-25px) scale(0.9);
    color: #3b82f6;
}

.form__placeholder {
    position: absolute;
    left: 20px;
    top: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form__icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.form__icon:hover {
    opacity: 0.7;
}

/* Form addition */
.form__addition {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.form__addition a {
    color: #3b82f6;
    text-decoration: none;
}

.form__addition a:hover {
    text-decoration: underline;
}

/* Button */
.btn {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(45deg, #10b981, #059669);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn:active {
    transform: translateY(0);
}

/* Account link */
.form__account {
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.form__account a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.form__account a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .main__form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 15;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
        padding: 30px 20px;
    }
    
    .main__title {
    font-size: 18px;
        font-size: 20px;
    }
    
    .main__bonus {
    font-size: 28px;
        font-size: 28px;
    }
    
    .main__logo img {
    max-width: 120px;
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .main__form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 15;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
        padding: 20px 15px;
    }
    
    .main__title {
    font-size: 18px;
        font-size: 18px;
    }
    
    .main__bonus {
    font-size: 28px;
        font-size: 24px;
    }
}
/* Better centering */
.main__wrap {
    width: 100%;
    max-width: 400px;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.main__logo {
    margin-bottom: 25px;
}

.main__logo img {
    max-width: 100px;
    height: auto;
}

.main__form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 15;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.main__title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.main__bonus {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 0;
}

.form__input {
    padding: 12px 15px;
    font-size: 14px;
    position: relative;
    z-index: 20;
    padding: 12px 15px;
    font-size: 14px;
}

.btn {
    padding: 12px 25px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .main__wrap {
        max-width: 350px;
        padding: 0 20px;
    }
    
    .main__form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 15;
        padding: 18px;
    }
    
    .main__logo img {
        max-width: 80px;
    }
    
    .main__title {
        font-size: 14px;
    }
    
    .main__bonus {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .main__wrap {
        max-width: 300px;
        padding: 0 15px;
    }
    
    .main__form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 15;
        padding: 15px;
    }
    
    .main__logo img {
        max-width: 70px;
    }
    
    .main__title {
        font-size: 13px;
    }
    
    .main__bonus {
        font-size: 18px;
    }
}
/* Ensure form elements are clickable */
.form-group {
    position: relative;
    z-index: 25;
}

.form__input {
    position: relative;
    z-index: 30;
    cursor: text;
}

.form__placeholder {
    position: absolute;
    left: 20px;
    top: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 35;
}

.form__icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    transition: opacity 0.3s ease;
    z-index: 40;
}

.btn {
    position: relative;
    z-index: 30;
    cursor: pointer;
}

.form__addition,
.form__account {
    position: relative;
    z-index: 25;
}

/* Ensure no overlay blocks clicks */
.blur_wrap {
    pointer-events: auto;
}

.wrapper {
    pointer-events: auto;
}

.main__wrap {
    pointer-events: auto;
}

.main__form {
    pointer-events: auto;
}

.form {
    pointer-events: auto;
}

.form__cover {
    pointer-events: auto;
}
/* Ensure main content is visible */
.blur_wrap {
    opacity: 1;
    visibility: visible;
}

.wrapper {
    opacity: 1;
    visibility: visible;
}

.main__wrap {
    opacity: 1;
    visibility: visible;
}

.main__form {
    opacity: 1;
    visibility: visible;
}

/* Debug styles */
.debug {
    border: 2px solid red !important;
    background: rgba(255,0,0,0.1) !important;
}