/* Дизайн страницы входа - Стоматологическая клиника */

.login-page {
    display: flex;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* Левая часть - Форма входа */
.login-form-section {
    flex: 1;
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    z-index: 10;
}

.login-form-wrapper {
    width: 100%;
    max-width: 420px;
    animation: fadeInScale 0.6s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.login-logo {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.8s ease-out;
}

.login-clinic-name {
    font-size: 28px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.85);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.login-developer {
    font-size: 12px;
    color: #94A3B8;
    font-weight: 400;
}

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

.login-title {
    font-size: 32px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.85);
    margin-bottom: 12px;
    text-align: center;
    letter-spacing: -0.5px;
}

.login-subtitle {
    font-size: 14px;
    color: #64748B;
    text-align: center;
    margin-bottom: 40px;
}

.login-form {
    margin-bottom: 24px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-input {
    width: 100%;
    height: 50px;
    padding: 0 20px;
    border: 2px solid #E2E8F0;
    border-radius: 25px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: rgba(0, 0, 0, 0.85);
    background-color: #FFFFFF;
    transition: all 0.3s ease;
    outline: none;
}

.login-input::placeholder {
    color: #94A3B8;
}

.login-input:focus {
    border-color: #6366F1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.login-btn {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    margin-top: 8px;
}

.login-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.login-btn:active {
    transform: scale(1.01);
}

.login-agreement {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-agreement:hover {
    color: #6366F1;
}

/* Правая часть - Анимационный блок */
.login-animation-section {
    flex: 1;
    background-color: #F4F4F6;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.animation-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Центральный блок (макет сайта) */
.animation-center-card {
    width: 300px;
    height: 400px;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 24px;
    z-index: 5;
    animation: fadeInScale 0.8s ease-out 0.2s both;
}

.card-header {
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    border-radius: 12px;
    margin-bottom: 20px;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-line {
    width: 100%;
    height: 12px;
    background: #E2E8F0;
    border-radius: 6px;
}

.card-line.short {
    width: 60%;
}

/* Плавающие иконки */
.floating-icon {
    position: absolute;
    opacity: 0.3;
    color: #6366F1;
    animation: float var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
    z-index: 1;
    left: var(--start-x);
    top: var(--start-y);
}

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

.floating-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.2));
}

/* Размеры иконок */
.icon-tooth {
    width: 60px;
    height: 60px;
}

.icon-brush {
    width: 50px;
    height: 50px;
}

.icon-smile {
    width: 55px;
    height: 55px;
}

.icon-tools {
    width: 45px;
    height: 45px;
}

.icon-braces {
    width: 40px;
    height: 40px;
}

.icon-paste {
    width: 35px;
    height: 35px;
}

.icon-tooth-2 {
    width: 50px;
    height: 50px;
}

.icon-brush-2 {
    width: 42px;
    height: 42px;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .login-page {
        flex-direction: column;
    }

    .login-animation-section {
        min-height: 300px;
    }

    .animation-center-card {
        width: 250px;
        height: 320px;
    }
}

@media (max-width: 768px) {
    .login-form-section {
        padding: 24px;
    }

    .login-title {
        font-size: 28px;
    }

    .animation-center-card {
        width: 200px;
        height: 280px;
    }

    .floating-icon {
        opacity: 0.2;
    }
}

/* Алерты */
.login-form-wrapper .alert {
    margin-bottom: 24px;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
    animation: slideDown 0.3s ease-out;
}

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

.login-form-wrapper .alert-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #B91C1C;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.login-form-wrapper .alert-success {
    background-color: rgba(34, 197, 94, 0.1);
    color: #15803D;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

