:root {
    --primary: #006655;
    --primary-dark: #00f7ff;
}

.auth-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    animation: fadeInBackground 0.8s ease-out forwards;
}

.auth-card {
    backdrop-filter: blur(2px);
    background: #1e1e2e6b;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 400px;
    border: 1px solid #2d2d3e;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    animation: slideUpCard 0.6s ease-out 0.3s forwards;
}

.info-type {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(to bottom, #2c2c2c 0%, #0a0a0a 100%);
}

.info-type h1{
    text-align: center;
    margin-bottom: 30px;
    color: #44c1bd;
    font-size: 1.8rem;
    opacity: 1;
    transform: translateY(0);
    animation: glow 5s ease-in-out infinite;
}

.info-type img{
    text-align: center;
    margin-bottom: 30px;
    color: #e0e0e0;
    font-size: 1.8rem;
    opacity: 0;
    margin-left: 0;
    animation: fadeInDown_2 0.5s ease-out 0.6s forwards;
}

.auth-form .form-group {
    margin-bottom: 20px;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.5s ease-out forwards;
}

.auth-form .form-group:nth-child(1) {
    animation-delay: 0.8s;
}

.auth-form .form-group:nth-child(2) {
    animation-delay: 0.9s;
}

.auth-form .form-group:nth-child(3) {
    animation-delay: 1.0s;
}


.auth-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #3d3d4e;
    border-radius: 8px;
    background: #2d2d3e;
    color: #e0e0e0;
    font-size: 1rem;
    transition: all 0.3s ease;
    transform: scale(1);
}

.auth-form input:focus {
    border-color: #667eea;
    background: #363646;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
    outline: none;
    transform: scale(1.02);
}

.auth-form input::placeholder {
    color: #888;
}

.auth-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.auth-links {
    text-align: center;
    margin-top: 20px;
    opacity: 0;
    animation: fadeIn 0.5s ease-out 1.2s forwards;
}

.auth-links a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    text-decoration: underline;
    color: #764ba2;
}

.auth-message {
    padding: 1px;
    margin: 1px 0;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    min-height: 1px;
}

.auth-message.show {
    display: block;
    opacity: 1;
    transform: scale(1);
    animation: bounceIn 0.5s ease-out;
}

.auth-message.success {
    padding: 12px;
    margin: 15px 0;
    min-height: 20px;
    background: rgba(76, 175, 80, 0.575);
    color: #ffffff;
    opacity: 1;
}

.auth-message.error {
    padding: 12px;
    margin: 15px 0;
    min-height: 20px;
    background: rgba(244, 67, 54, 0.575);
    color: #ffffff;
    opacity: 1;
}

/* Анимации */
@keyframes fadeInBackground {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes fadeInDown_2 {
    from {
        opacity: 0;
        transform: translateY(-60px);
    }
    to {
        opacity: 1;
        transform: translateY(-45px);
    }
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 5px var(--primary), 0 0 10px var(--primary);}
    50% { text-shadow: 0 0 20px var(--primary-dark), 0 0 40px var(--primary-dark);}
}

@keyframes glow-box {
    0%, 100% { box-shadow: 0 0 5px var(--primary), 0 0 10px var(--primary); }
    50% { box-shadow: 0 0 20px var(--primary-dark), 0 0 40px var(--primary-dark);}
}

/* Дополнительные эффекты при взаимодействии */
.auth-form input:valid {
    border-color: #4caf50;
}

.auth-form input:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #f44336;
}

@media (max-width: 767px) {
    .auth-container {
    background: 
    url('/static/uploads/images/background.jpg') center/cover fixed, 
    var(--bg-primary);
}
}

/* Адаптивность */
@media (max-width: 480px) {
    .auth-card {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .auth-card h1 {
        font-size: 1.5rem;
    }
}