/* styles.css - Настоящий аниме-стиль */

/* Базовые стили с аниме-тематикой */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial Rounded MT Bold', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, 
        #1a1a2e 0%,
        #16213e 25%,
        #0f3460 50%,
        #533483 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow: hidden;
    position: relative;
    color: #ffffff;
}

/* Аниме небо с планетами */
.anime-sky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

/* Луна в аниме стиле */
.anime-moon {
    position: absolute;
    width: 120px;
    height: 120px;
    top: 10%;
    right: 10%;
    background: radial-gradient(circle at 30% 30%, 
        #fffacd 0%,
        #ffd700 30%,
        #ff8c00 70%,
        transparent 100%);
    border-radius: 50%;
    box-shadow: 
        0 0 60px #ffd700,
        0 0 100px rgba(255, 215, 0, 0.3);
    animation: animeMoonGlow 4s infinite ease-in-out;
}

@keyframes animeMoonGlow {
    0%, 100% {
        box-shadow: 
            0 0 60px #ffd700,
            0 0 100px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 
            0 0 80px #ffd700,
            0 0 120px rgba(255, 215, 0, 0.5),
            0 0 150px rgba(255, 140, 0, 0.2);
    }
}

/* Аниме облака в стиле Studio Ghibli */
.ghibli-cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    filter: blur(1px);
    animation: ghibliFloat 40s infinite linear;
}

.ghibli-cloud:nth-child(1) {
    width: 150px;
    height: 70px;
    top: 15%;
    left: -150px;
    animation-delay: 0s;
    animation-duration: 50s;
    box-shadow: 
        20px 10px 0 0 rgba(255, 255, 255, 0.8),
        -10px -5px 0 0 rgba(255, 255, 255, 0.6);
}

.ghibli-cloud:nth-child(2) {
    width: 200px;
    height: 90px;
    top: 30%;
    left: -200px;
    animation-delay: 10s;
    animation-duration: 60s;
    box-shadow: 
        25px 15px 0 0 rgba(255, 255, 255, 0.8),
        -15px -8px 0 0 rgba(255, 255, 255, 0.6);
}

.ghibli-cloud:nth-child(3) {
    width: 180px;
    height: 80px;
    top: 60%;
    left: -180px;
    animation-delay: 20s;
    animation-duration: 55s;
    box-shadow: 
        15px 8px 0 0 rgba(255, 255, 255, 0.8),
        -8px -4px 0 0 rgba(255, 255, 255, 0.6);
}

@keyframes ghibliFloat {
    0% {
        transform: translateX(0) translateY(0);
    }
    100% {
        transform: translateX(calc(100vw + 300px)) translateY(-20px);
    }
}

/* Падающие сакура-лепестки */
.sakura-petal {
    position: absolute;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, 
        rgba(255, 182, 193, 0.9) 0%,
        rgba(255, 105, 180, 0.7) 100%);
    border-radius: 50% 0 50% 50%;
    transform: rotate(45deg);
    animation: sakuraFall 15s infinite linear;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.sakura-petal:nth-child(4) {
    top: -20px;
    left: 5%;
    animation-delay: 0s;
    animation-duration: 18s;
}

.sakura-petal:nth-child(5) {
    top: -20px;
    left: 20%;
    animation-delay: 3s;
    animation-duration: 22s;
    width: 15px;
    height: 15px;
}

.sakura-petal:nth-child(6) {
    top: -20px;
    left: 40%;
    animation-delay: 6s;
    animation-duration: 20s;
    width: 25px;
    height: 25px;
}

.sakura-petal:nth-child(7) {
    top: -20px;
    left: 60%;
    animation-delay: 9s;
    animation-duration: 25s;
}

.sakura-petal:nth-child(8) {
    top: -20px;
    left: 80%;
    animation-delay: 12s;
    animation-duration: 17s;
    width: 18px;
    height: 18px;
}

@keyframes sakuraFall {
    0% {
        transform: translateY(0) translateX(0) rotate(45deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) translateX(100px) rotate(405deg);
        opacity: 0;
    }
}

/* Аниме градиентная сетка */
.anime-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 105, 180, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 105, 180, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s infinite linear;
    z-index: -1;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Стиль для формы в аниме-стиле */
.anime-container {
    width: 100%;
    max-width: 450px;
    background: rgba(26, 26, 46, 0.85);
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 0 0 2px #ff1493,
        0 0 0 4px #00ffff,
        inset 0 0 20px rgba(255, 20, 147, 0.3);
    overflow: hidden;
    animation: animeAppear 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backdrop-filter: blur(10px);
    border: 3px solid;
    border-image: linear-gradient(45deg, #ff1493, #00ffff, #ffff00) 1;
    position: relative;
    z-index: 1;
}

@keyframes animeAppear {
    from {
        opacity: 0;
        transform: scale(0.8) rotateX(-10deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotateX(0);
    }
}

/* Неоновые блики */
.anime-container::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, 
        transparent 30%,
        rgba(255, 20, 147, 0.2) 50%,
        transparent 70%);
    z-index: -1;
    border-radius: 25px;
    animation: neonShine 3s infinite linear;
}

@keyframes neonShine {
    0% {
        transform: translateX(-100%) translateY(-100%);
    }
    100% {
        transform: translateX(100%) translateY(100%);
    }
}

/* Заголовок в аниме стиле */
.anime-header {
    background: linear-gradient(45deg, 
        #ff1493 0%,
        #ff69b4 25%,
        #00ffff 50%,
        #00ced1 75%,
        #1a1a2e 100%);
    color: white;
    padding: 35px 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid #00ffff;
}

.anime-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
    font-weight: 900;
    text-shadow: 
        0 2px 0 #ff1493,
        0 4px 0 #ff1493,
        0 6px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(45deg, #ffffff, #ffff00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 2s infinite alternate;
}

@keyframes titleGlow {
    from {
        filter: drop-shadow(0 0 5px #ff1493);
    }
    to {
        filter: drop-shadow(0 0 20px #00ffff);
    }
}

.anime-header p {
    font-size: 16px;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    font-weight: 600;
    letter-spacing: 1px;
}

/* Тело формы */
.anime-body {
    padding: 35px 30px;
    position: relative;
}

/* Аниме уведомления */
.anime-alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: alertPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    background: rgba(255, 20, 147, 0.1);
    border: 2px solid;
    border-image: linear-gradient(45deg, #ff1493, #ff69b4) 1;
    position: relative;
    overflow: hidden;
}

@keyframes alertPop {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-error {
    background: rgba(255, 0, 0, 0.1);
    border-image: linear-gradient(45deg, #ff0000, #ff4500) 1;
    color: #ff6b6b;
}

.alert-success {
    background: rgba(0, 255, 0, 0.1);
    border-image: linear-gradient(45deg, #00ff00, #00ced1) 1;
    color: #00ff7f;
}

.anime-alert i {
    font-size: 22px;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}

/* Группы формы с аниме эффектами */
.anime-form-group {
    margin-bottom: 30px;
    animation: formSlide 0.6s ease-out backwards;
}

.anime-form-group:nth-child(1) { animation-delay: 0.1s; }
.anime-form-group:nth-child(2) { animation-delay: 0.2s; }

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

.anime-form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 700;
    color: #00ffff;
    font-size: 16px;
    text-shadow: 0 2px 5px rgba(0, 255, 255, 0.3);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.anime-input-container {
    position: relative;
}

.anime-input-container i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #ff1493;
    font-size: 22px;
    transition: all 0.3s ease;
    z-index: 2;
    filter: drop-shadow(0 0 5px #ff1493);
}

.anime-input {
    width: 100%;
    padding: 18px 20px 18px 60px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #ff1493;
    border-radius: 15px;
    font-size: 18px;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        inset 0 4px 15px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 20, 147, 0.2);
    position: relative;
    z-index: 1;
    font-weight: 600;
}

.anime-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.anime-input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 
        inset 0 4px 20px rgba(0, 0, 0, 0.7),
        0 0 30px rgba(0, 255, 255, 0.4),
        0 0 0 3px rgba(0, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-3px);
}

.anime-input:focus + i {
    color: #00ffff;
    transform: translateY(-50%) scale(1.2);
    filter: drop-shadow(0 0 10px #00ffff);
}

/* Аниме кнопка */
.anime-btn {
    width: 100%;
    padding: 20px;
    background: linear-gradient(45deg, 
        #ff1493 0%,
        #ff69b4 25%,
        #00ffff 50%,
        #ff1493 100%);
    background-size: 300% 300%;
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 10px 30px rgba(255, 20, 147, 0.4),
        0 5px 15px rgba(0, 0, 0, 0.3);
    animation: 
        btnSlide 0.8s ease-out backwards,
        btnGradient 3s infinite linear;
    animation-delay: 0.3s, 0s;
}

@keyframes btnSlide {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes btnGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.anime-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%);
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.anime-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 20px 40px rgba(255, 20, 147, 0.6),
        0 10px 25px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 255, 255, 0.5);
}

.anime-btn:hover::before {
    left: 100%;
    top: 100%;
}

.anime-btn:active {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 5px 20px rgba(255, 20, 147, 0.4),
        0 3px 10px rgba(0, 0, 0, 0.3);
}

.anime-btn i {
    font-size: 24px;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
}

/* Аниме персонажи в углу (опционально) */
.anime-character {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 100px;
    height: 150px;
    background: linear-gradient(45deg, #ff1493, #00ffff);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    opacity: 0.1;
    animation: characterFloat 6s infinite ease-in-out;
}

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

/* Адаптивность */
@media (max-width: 480px) {
    .anime-container {
        margin: 10px;
        max-width: 95%;
    }
    
    .anime-header {
        padding: 25px 20px;
    }
    
    .anime-body {
        padding: 25px 20px;
    }
    
    .anime-header h1 {
        font-size: 28px;
    }
    
    .anime-btn {
        padding: 18px;
        font-size: 18px;
    }
}