/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    padding: 10px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Шапка */
.header {
    background: linear-gradient(to right, #0047ab, #002d62);
    color: white;
    padding: 20px;
}

.university-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.logo-placeholder {
    background-color: white;
    color: #0047ab;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    flex-shrink: 0;
}

.university-details h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.university-details p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Основной контент */
.main-content {
    padding: 30px;
}

.platform-info {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.platform-logo {
    display: inline-block;
}

.platform-logo i {
    font-size: 60px;
    color: #0047ab;
    margin-bottom: 15px;
}

.platform-logo h2 {
    font-family: 'Montserrat', sans-serif;
    color: #0047ab;
    font-size: 2.2rem;
    margin-bottom: 5px;
}

.platform-logo p {
    color: #666;
    font-size: 1.2rem;
}

/* Форма */
.form-container {
    max-width: 500px;
    margin: 0 auto 40px;
    background-color: #f9fafc;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.form-header h3 {
    font-family: 'Montserrat', sans-serif;
    color: #0047ab;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.form-header p {
    color: #666;
    font-size: 1rem;
}

.form-header i {
    color: #0047ab;
    margin-right: 10px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 1.1rem;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #0047ab;
    font-size: 18px;
}

.input-with-icon input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.input-with-icon input:focus {
    outline: none;
    border-color: #0047ab;
    box-shadow: 0 0 0 3px rgba(0, 71, 171, 0.1);
}

.input-hint {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
}

.input-hint i {
    margin-right: 8px;
    color: #0047ab;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(to right, #0047ab, #0066cc);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    background: linear-gradient(to right, #003d8f, #0052a3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 71, 171, 0.2);
}

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

.form-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.form-footer a {
    color: #0047ab;
    text-decoration: none;
    font-weight: 500;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Сообщения */
.message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    font-weight: 500;
}

.message.error {
    background-color: #ffe6e6;
    color: #cc0000;
    border-left: 5px solid #cc0000;
}

.message.info {
    background-color: #e6f2ff;
    color: #0066cc;
    border-left: 5px solid #0066cc;
}

.message a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

/* Инструкции */
.instructions {
    max-width: 500px;
    margin: 0 auto;
    background-color: #f0f7ff;
    padding: 25px;
    border-radius: 15px;
    border-left: 5px solid #0047ab;
}

.instructions h4 {
    font-family: 'Montserrat', sans-serif;
    color: #0047ab;
    margin-bottom: 15px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.instructions ul {
    list-style-type: none;
}

.instructions li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.instructions li i {
    color: #0047ab;
    margin-top: 3px;
}

/* Футер */
.footer {
    background-color: #f5f7fa;
    padding: 20px;
    text-align: center;
    color: #666;
    border-top: 1px solid #eee;
}

.footer p {
    margin-bottom: 10px;
}

.support {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
}

.support i {
    color: #0047ab;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    body {
        padding: 5px;
    }
    
    .container {
        border-radius: 15px;
    }
    
    .header {
        padding: 15px;
    }
    
    .university-info {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .logo-placeholder {
        width: 70px;
        height: 70px;
        font-size: 35px;
    }
    
    .university-details h1 {
        font-size: 1.3rem;
    }
    
    .university-details p {
        font-size: 0.95rem;
    }
    
    .main-content {
        padding: 20px 15px;
    }
    
    .platform-logo h2 {
        font-size: 1.8rem;
    }
    
    .platform-logo p {
        font-size: 1rem;
    }
    
    .form-container {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .form-header h3 {
        font-size: 1.5rem;
    }
    
    .form-group label {
        font-size: 1rem;
    }
    
    .input-with-icon input {
        padding: 12px 12px 12px 40px;
        font-size: 1rem;
    }
    
    .submit-btn {
        padding: 14px;
        font-size: 1.1rem;
    }
    
    .instructions {
        padding: 20px;
    }
    
    .footer {
        padding: 15px;
    }
    
    .footer p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .university-details h1 {
        font-size: 1.1rem;
    }
    
    .university-details p {
        font-size: 0.85rem;
    }
    
    .platform-logo h2 {
        font-size: 1.5rem;
    }
    
    .form-header h3 {
        font-size: 1.3rem;
    }
    
    .form-header p {
        font-size: 0.95rem;
    }
    
    .input-with-icon input {
        font-size: 16px; /* Для предотвращения масштабирования на iOS */
    }
}