* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

header {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(13, 110, 165, 0.1);
    width: 100%;
    max-width: 800px;
}

header h1 {
    font-size: 2.2em;
    color: #1565c0;
    font-weight: 600;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.main-nav a {
    text-decoration: none;
    color: #1565c0;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #0d47a1;
}



body {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f7ff 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

.container {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    z-index: 1;
}

/* Декоративные элементы */
.decoration {
    position: absolute;
    z-index: 0;
}

.decoration-1 {
    top: 10%;
    right: 5%;
    width: 150px;
    height: 150px;
    border: 15px solid rgba(143, 194, 223, 0.15);
    border-radius: 50%;
}

.decoration-2 {
    bottom: 20%;
    left: 5%;
    width: 100px;
    height: 100px;
    border: 10px solid rgba(99, 181, 229, 0.1);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.decoration-3 {
    top: 40%;
    left: 10%;
    width: 80px;
    height: 80px;
    border: 8px solid rgba(73, 160, 211, 0.1);
    transform: rotate(45deg);
}

/* Шапка */
header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(13, 110, 165, 0.1);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #1e88e5, #0d47a1);
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    animation: pulse 2s infinite ease-in-out;
}

.logo-icon {
    font-size: 2.5rem;
    color: #1e88e5;
    margin-right: 10px;
}

h1 {
    color: #1565c0;
    font-size: 2.8em;
    margin-bottom: 15px;
    font-weight: 600;
}

.mission {
    color: #37474f;
    font-size: 1.2em;
    font-weight: 400;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Основной контент */
.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.benefits {
    flex: 1;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(13, 110, 165, 0.1);
}

.benefits h2 {
    color: #0d47a1;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8em;
    position: relative;
    padding-bottom: 10px;
}

.benefits h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #1e88e5, #0d47a1);
    border-radius: 3px;
}

.benefits ul {
    list-style: none;
}

.benefits li {
    padding: 15px 0;
    font-size: 1.1em;
    color: #455a64;
    border-bottom: 1px solid #e3f2fd;
    display: flex;
    align-items: center;
}

.benefits li:last-child {
    border-bottom: none;
}

.benefits li i {
    margin-right: 15px;
    color: #1e88e5;
    font-size: 1.3em;
    width: 25px;
}

/* Форма */
.auth-form {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.form-frame {
    position: relative;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(13, 110, 165, 0.15);
    border-top: 5px solid #1e88e5;
    width: 100%;
    max-width: 450px;
    overflow: hidden; /* чтобы не вылезал blur */
    background: rgba(255, 255, 255, 0.6); /* белая подложка */
    backdrop-filter: blur(10px); /* магия размытия */
}

/* Фон-картинка с blur */
.form-frame::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: url('dentist-treating-patient.avif') center/cover no-repeat;
    filter: blur(2px);
    transform: scale(1.1); /* чтобы края не были резкими */
    z-index: -1;
}

.form-frame h2 {
    text-align: center;
    color: #1565c0;
    margin-bottom: 30px;
    font-size: 1.8em;
    font-weight: 600;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #37474f;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #bbdefb;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #1e88e5;
    box-shadow: 0 0 15px rgba(30, 136, 229, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-group input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #1e88e5;
}

.checkbox-group label {
    color: #546e7a;
    font-weight: 500;
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn {
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn i {
    margin-right: 10px;
}

.btn-login {
    background: linear-gradient(90deg, #84b4eb, #84b4eb);
    color: white;
}

.btn-login:hover {
    background: linear-gradient(90deg, #1565c0, #0d47a1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 71, 161, 0.3);
}

.btn-register {
    background: white;
    color: #84b4eb;
    border: 2px solid #84b4eb;
}

.btn-register:hover {
    background: #e3f2fd;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 136, 229, 0.2);
}

.forgot-password {
    text-align: center;
    color: #1e88e5;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #0d47a1;
    text-decoration: underline;
}

/* Футер */
footer {
    background: linear-gradient(90deg, #0d47a1, #1565c0);
    color: white;
    padding: 40px 0 30px;
    margin-top: auto;
}

.contact-info {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-info h3 {
    margin-bottom: 25px;
    font-size: 1.8em;
    font-weight: 500;
}

.contact-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.contact-details p {
    margin: 8px 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-details i {
    margin-right: 10px;
    font-size: 1.2em;
}

.copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
    color: #e3f2fd;
}

/* Адаптивность */
@media (max-width: 768px) {

    header h1 { font-size: 1.8em; }

    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 2.2em;
    }
    
    .mission {
        font-size: 1.1em;
    }
    
    .form-frame {
        padding: 30px 20px;
    }
    
    .benefits {
        padding: 20px;
    }

    .content-wrapper {
        flex-direction: column;
    }

    .decoration {
        display: none;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8em;
    }
    
    .form-frame {
        padding: 20px 15px;
    }
    
    .input-group input {
        padding: 12px;
    }
    
    .btn {
        padding: 12px;
    }

    header {
        padding: 20px 15px;
    }
}

/* Валидация */
input:invalid {
    border-color: #000000;
}

input:valid {
    border-color: #000200;
}




/* Анимации */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.logo {
    animation: pulse 2s infinite ease-in-out;
}