/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Background Gradient */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

/* Floating Background Shapes */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-shapes .shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

.floating-shapes .shape:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-shapes .shape:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    animation-delay: 5s;
}

.floating-shapes .shape:nth-child(3) {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: 10s;
}

.floating-shapes .shape:nth-child(4) {
    width: 100px;
    height: 100px;
    top: 40%;
    right: 30%;
    animation-delay: 15s;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(0px) rotate(360deg);
        opacity: 0.3;
    }
}

/* Header Styles */
header {
    position: relative;
    z-index: 50;
    padding: 1rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo i {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #bfdbfe;
}

.nav-links i {
    margin-right: 0.5rem;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    position: relative;
    z-index: 10;
}

.form-container {
    max-width: 28rem;
    width: 100%;
}

/* Glass Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.form-icon i {
    font-size: 1.5rem;
    color: white;
}

.form-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: #bfdbfe;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #bfdbfe;
    margin-bottom: 0.5rem;
}

.form-label i {
    margin-right: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: #bfdbfe;
}

.form-input:focus {
    outline: none;
    ring: 2px solid rgba(255, 255, 255, 0.5);
    border-color: transparent;
    background: rgba(255, 255, 255, 0.25);
}

.input-icon {
    position: absolute;
    right: 0.75rem;
    top: 2.3rem;
    color: #93c5fd;
    cursor: pointer;
    transition: color 0.2s ease;
    border:none;
    background: none;
    font-weight: 900;
    font-size: 1.25rem;
}

.input-icon:hover {
    color: white;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 0.5rem;
}

.strength-bars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.strength-bar {
    height: 0.25rem;
    flex: 1;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 0.125rem;
    transition: background-color 0.3s ease;
}

.strength-bar.weak {
    background-color: #ef4444;
}

.strength-bar.medium {
    background-color: #f59e0b;
}

.strength-bar.strong {
    background-color: #10b981;
}

.strength-text {
    font-size: 0.75rem;
    color: #bfdbfe;
}

.flash-text {
    font-size: 0.75rem;
    color: #ffc267;
}
/* Plan Selection */
.plan-option {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0.75rem;
    position: relative;
}

.plan-option:hover {
    background: rgba(255, 255, 255, 0.2);
}

.plan-option.popular {
    border: 2px solid #fbbf24;
}

.plan-option.popular::before {
    content: 'Популярный';
    position: absolute;
    top: -0.5rem;
    right: 0.5rem;
    background: #fbbf24;
    color: #1f2937;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: bold;
}

.radio-custom {
    width: 1rem;
    height: 1rem;
    border: 2px solid white;
    border-radius: 50%;
    margin-right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radio-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: white;
    border-radius: 50%;
    display: none;
}

.radio-dot.active {
    display: block;
}

.plan-details {
    flex: 1;
}

.plan-name {
    color: white;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.plan-description {
    color: #bfdbfe;
    font-size: 0.875rem;
}

/* Checkbox Styles */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox {
    margin-top: 0.25rem;
    width: 1rem;
    height: 1rem;
    accent-color: #3b82f6;
}

.checkbox-label {
    font-size: 0.875rem;
    color: #bfdbfe;
    line-height: 1.4;
}

.checkbox-label a {
    color: #fbbf24;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.checkbox-label a:hover {
    color: #f59e0b;
}

/* Remember Me and Forgot Password */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.remember-me input {
    width: 1rem;
    height: 1rem;
    accent-color: #3b82f6;
}

.remember-me label {
    font-size: 0.875rem;
    color: #bfdbfe;
    cursor: pointer;
}

.forgot-password {
    font-size: 0.875rem;
    color: #fbbf24;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: #f59e0b;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: bold;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(to right, #fbbf24, #f59e0b);
    color: #1f2937;
}

.btn-primary:hover {
    background: linear-gradient(to right, #f59e0b, #d97706);
    transform: scale(1.02);
}

.btn-secondary {
    background: linear-gradient(to right, #3b82f6, #2563eb);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(to right, #2563eb, #1d4ed8);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-success {
    background: linear-gradient(to right, #10b981, #059669) !important;
    color: white !important;
}

/* Error Message */
.error-message {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #f87171;
    border-radius: 0.5rem;
    display: none;
}

.error-message.show {
    display: flex;
}

.error-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.error-icon {
    color: #fca5a5;
}

.error-text {
    color: #fecaca;
}

/* Form Footer */
.form-footer {
    margin-top: 2rem;
    text-align: center;
    color: #bfdbfe;
}

.form-footer a {
    font-weight: 500;
    color: #fbbf24;
    text-decoration: none;
    transition: color 0.2s ease;
}

.form-footer a:hover {
    color: #f59e0b;
}

/* Trust Indicators */
.trust-indicators {
    margin-top: 2rem;
    text-align: center;
}

.trust-items {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    color: #bfdbfe;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trust-item i {
    font-size: 1rem;
}

.trust-item span {
    font-size: 0.875rem;
}

/* Quick Stats */
.quick-stats {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.75rem;
}

.stat-number {
    font-size: 1.125rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: #bfdbfe;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

.animate-pulse {
    animation: pulse 3s infinite;
}

/* Validation Icons */
.validation-icon {
    position: absolute;
    right: 0.75rem;
    top: 2.8rem;
    display: none;
}

.validation-icon.show {
    display: block;
}

.validation-icon.valid {
    color: #10b981;
}

.validation-icon.invalid {
    color: #ef4444;
}

/* Hidden Elements */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .form-container {
        max-width: 100%;
    }

    .glass-effect {
        padding: 1.5rem;
    }

    .trust-items {
        flex-direction: column;
        gap: 1rem;
    }

    .quick-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .form-title {
        font-size: 1.5rem;
    }

    .btn {
        font-size: 1rem;
        padding: 0.625rem 1.25rem;
    }

    .glass-effect {
        padding: 1rem;
    }
}