* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a2980, #26d0ce);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 1200px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Шапка */
.header {
    background: linear-gradient(to right, #2c3e50, #4a6491);
    color: white;
    padding: 25px 40px;
    border-bottom: 5px solid #3498db;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-icon {
    font-size: 3.5rem;
    color: #3498db;
}

.school-name {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: #ecf0f1;
}

.school-motto {
    font-size: 1rem;
    color: #bdc3c7;
    font-style: italic;
}

.header-info {
    text-align: right;
}

.header-info p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #ecf0f1;
}

.header-info i {
    color: #3498db;
    margin-right: 8px;
}

/* Основное содержимое */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

@media (max-width: 900px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

/* Контейнер формы */
.login-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #e3f2fd;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.login-header p {
    color: #7f8c8d;
    font-size: 1rem;
}

/* Выбор типа пользователя */
.user-type-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 10px;
}

.user-type {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.user-type i {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #7f8c8d;
}

.user-type span {
    display: block;
    font-weight: 600;
    color: #7f8c8d;
}

.user-type.active {
    background: white;
    border-color: #3498db;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.2);
}

.user-type.active i,
.user-type.active span {
    color: #3498db;
}

.user-type:hover:not(.active) {
    background: rgba(52, 152, 219, 0.1);
}

/* Форма */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
}

.form-group label i {
    color: #3498db;
    margin-right: 10px;
    width: 20px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.form-group input::placeholder {
    color: #95a5a6;
}

/* Сообщение об ошибке */
.error-message {
    background: #fee;
    border: 2px solid #e74c3c;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #c0392b;
    font-weight: 500;
    animation: shake 0.5s ease-in-out;
}

.error-message i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Кнопка отправки */
.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(to right, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.submit-btn:hover {
    background: linear-gradient(to right, #2980b9, #2573a7);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

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

.form-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.form-footer p {
    margin: 8px 0;
}

.form-footer i {
    color: #3498db;
    margin-right: 8px;
}

/* Информационная панель */
.info-panel {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #dfe6e9;
}

.info-panel h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.info-panel h3 i {
    color: #3498db;
    margin-right: 10px;
}

.info-panel ul {
    list-style: none;
    margin-bottom: 30px;
}

.info-panel li {
    padding: 12px 0;
    border-bottom: 1px dashed #ddd;
    color: #34495e;
    font-size: 1rem;
}

.info-panel li i {
    color: #2ecc71;
    margin-right: 12px;
    font-size: 1.1rem;
}

.info-panel li:last-child {
    border-bottom: none;
}

.stats {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #3498db;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.stat-item i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 10px;
}

.stat-item span {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

/* Подвал */
.footer {
    background: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 25px;
    border-top: 5px solid #3498db;
}

.footer p {
    margin: 10px 0;
}

.footer-links {
    margin-top: 15px;
}

.footer-links a {
    color: #3498db;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ecf0f1;
    text-decoration: underline;
}

.footer-links i {
    margin-right: 5px;
}