:root {
    --lavender: #C8A2C8;
    --light-pink: #FFB6C1;
    --dark-bg: #1a1a1a;
    --gradient-primary: linear-gradient(135deg, var(--lavender) 0%, var(--light-pink) 100%);
    --text-light: #f0f0f0;
    --text-dark: #333;
    --shadow: 0 8px 32px rgba(200, 162, 200, 0.3);
    --border-radius: 16px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Анимированный фон */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(200, 162, 200, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 182, 193, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(200, 162, 200, 0.05) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundShift 20s ease-in-out infinite alternate;
}

@keyframes backgroundShift {
    0% { transform: translateX(0px) translateY(0px); }
    100% { transform: translateX(30px) translateY(-30px); }
}

/* Контейнеры */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

/* Карточки */
.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 48px rgba(200, 162, 200, 0.4);
}

.login-card {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

/* Заголовки */
h1, h2 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

h2 {
    font-size: 2rem;
}

/* Формы */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--light-pink);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--lavender);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(200, 162, 200, 0.2);
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200, 162, 200, 0.4);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Drag & Drop зона */
.upload-zone {
    border: 3px dashed rgba(200, 162, 200, 0.5);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    text-align: center;
    margin: 2rem 0;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.upload-zone.dragover {
    border-color: var(--light-pink);
    background: rgba(255, 182, 193, 0.1);
    transform: scale(1.02);
}

.upload-zone-content {
    pointer-events: none;
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.upload-text {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--lavender);
}

.upload-subtext {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Превью изображений */
.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.preview-item {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Результат */
.result-section {
    margin-top: 3rem;
    text-align: center;
}

.results-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.result-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.result-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(200, 162, 200, 0.3);
}

.result-image {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-top: 1rem;
}

/* Хедер */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Лоадер */
.loader {
    display: none;
    margin: 2rem auto;
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top: 5px solid var(--lavender);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loader.show {
    display: block;
}

/* Прогресс-бар */
.progress-section {
    margin: 2rem 0;
    text-align: center;
}

.progress-info {
    margin-bottom: 1rem;
}

.progress-text {
    font-size: 1.1rem;
    color: var(--lavender);
    margin-bottom: 0.5rem;
}

.progress-details {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

/* Уведомления */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    z-index: 1000;
    max-width: 400px;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.success {
    background: linear-gradient(135deg, #4ade80, #22c55e);
}

.notification.error {
    background: linear-gradient(135deg, #f87171, #ef4444);
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .upload-zone {
        padding: 2rem 1rem;
        min-height: 200px;
    }
    
    .upload-icon {
        font-size: 3rem;
    }
    
    .image-preview {
        justify-content: center;
    }
    
    .preview-item {
        width: 120px;
        height: 120px;
    }
}

/* Скрытые элементы */
.hidden {
    display: none !important;
}

/* Анимации появления */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
} 