/* Sign In Page Styles */
/* Скрываем модальное меню для мобильных устройств на странице входа */
:root {
    --primary-color: #6E56CF;
    --primary-light: #9D8DF1;
    --primary-dark: #5746A9;
    --success-color: #14F195;
    --warning-color: #F1A514;
    --error-color: #F14D56;
    --background-dark: #0F0B19;
    --background-medium: #1A1625;
    --background-light: #2A2537;
    --text-primary: #FFFFFF;
    --text-secondary: #B4B7C5;
    --text-tertiary: #8E92A4;
    --border-color: rgba(255, 255, 255, 0.1);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    --transition-speed: 0.3s;
    --container-width: 1320px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-dark);
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--primary-color);
}

button {
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.container {
    max-width: var(--container-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Background Styles */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.5;
}

.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(110, 86, 207, 0.15) 0%, transparent 30%),
                radial-gradient(circle at 90% 80%, rgba(20, 241, 149, 0.1) 0%, transparent 40%);
    z-index: 0;
    pointer-events: none;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: var(--spacing-md) 0;
    transition: all var(--transition-speed) ease;
    backdrop-filter: blur(10px);
    background: rgba(15, 11, 25, 0.8);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.logo a {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    color: var(--text-primary);
    text-decoration: none;
}

.logo img {
    height: 32px;
    width: auto;
}

.logo span {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(90deg, var(--text-primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(110, 86, 207, 0.4);
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--background-light);
    cursor: pointer;
    transition: background var(--transition-speed) ease;
}

.theme-toggle:hover {
    background: var(--background-medium);
}

.theme-toggle svg {
    color: var(--text-secondary);
    transition: color var(--transition-speed) ease;
}

.theme-toggle:hover svg {
    color: var(--text-primary);
}

/* Light Theme Styles */
.light-theme {
    --background-dark: #FFFFFF;
    --background-medium: #F5F5F7;
    --background-light: #E8E8E8;
    --text-primary: #1A1625;
    --text-secondary: #333333;
    --text-tertiary: #555555;
    --border-color: rgba(0, 0, 0, 0.1);
}

.light-theme .header {
    background: rgba(255, 255, 255, 0.8);
}

.light-theme .logo span {
    background: linear-gradient(90deg, var(--text-primary) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

/* Стили для чекбокса в светлой теме */
.light-theme .checkbox-wrapper input[type="checkbox"]:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.light-theme .checkbox-wrapper input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 8px;
    height: 4px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg);
}

/* Sign In Section Styles */
.sign-in-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    position: relative;
    z-index: 10;
}

.sign-in-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.sign-in-card {
    background: rgba(26, 22, 37, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.6s ease-out, slideUp 0.6s ease-out;
    overflow: hidden;
    position: relative;
}

.sign-in-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--success-color) 100%);
}

.card-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.card-logo {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.card-logo img {
    height: 48px;
    width: auto;
}

.card-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    background: linear-gradient(90deg, var(--text-primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
}

.auth-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.auth-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
    margin: var(--spacing-sm) auto 0;
    border-radius: 2px;
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    background: linear-gradient(90deg, var(--text-primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-forms {
    position: relative;
    margin-bottom: var(--spacing-xl);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.label-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xs);
}

.forgot-password {
    font-size: 14px;
    color: var(--primary-light);
}

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

.input-wrapper svg {
    position: absolute;
    left: var(--spacing-md);
    color: var(--text-tertiary);
}

.input-wrapper input {
    width: 100%;
    padding: var(--spacing-md) calc(var(--spacing-md) * 3) var(--spacing-md) calc(var(--spacing-md) * 3);
    background: var(--background-medium);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    font-size: 16px;
    transition: all var(--transition-speed) ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(110, 86, 207, 0.2);
}

.input-wrapper input::placeholder {
    color: var(--text-tertiary);
}

.toggle-password {
    position: absolute;
    right: calc(var(--spacing-md) + 25px);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 2;
    cursor: pointer;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.checkbox-wrapper input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--background-medium);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-speed) ease;
}

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

.checkbox-wrapper input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 8px;
    height: 4px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg);
}

.checkbox-wrapper label {
    margin-bottom: 0;
    cursor: pointer;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(110, 86, 207, 0.4);
}

.btn-sign-in {
    width: 100%;
    padding: 14px 24px;
    gap: var(--spacing-sm);
}

.btn-sign-in svg {
    transition: transform var(--transition-speed) ease;
}

.btn-sign-in:hover svg {
    transform: translateX(4px);
}

/* Removed wallet options styles */

.card-footer {
    text-align: center;
    color: var(--text-secondary);
}

.sign-up-link {
    color: var(--primary-light);
    font-weight: 500;
}

.sign-up-link:hover {
    text-decoration: underline;
}

.sign-in-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    justify-content: center;
}

.feature-card {
    background: rgba(26, 22, 37, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    animation: fadeIn 0.6s ease-out, slideUp 0.6s ease-out;
    animation-fill-mode: both;
}

.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

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

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(110, 86, 207, 0.3);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(110, 86, 207, 0.1);
    margin-bottom: var(--spacing-md);
    color: var(--primary-light);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Light Theme Styles for Sign In */
.light-theme .sign-in-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.light-theme .card-title {
    background: linear-gradient(90deg, var(--text-primary) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.light-theme .auth-option {
    background: var(--background-medium);
}

.light-theme .auth-option.active {
    background: rgba(110, 86, 207, 0.1);
}

.light-theme .input-wrapper input {
    background: var(--background-medium);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.light-theme .checkbox-wrapper input[type="checkbox"] {
    background: var(--background-medium);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.light-theme .feature-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.light-theme .feature-icon {
    background: rgba(110, 86, 207, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(110, 86, 207, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(110, 86, 207, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(110, 86, 207, 0);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .sign-in-container {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    
    .sign-in-features {
        display: none;
    }
}

@media (max-width: 576px) {
    .auth-options {
        flex-direction: column;
    }
    
    .wallet-options {
        grid-template-columns: 1fr;
    }
    
    .card-title {
        font-size: 24px;
    }
    
    .sign-in-card {
        padding: var(--spacing-lg);
    }
}
