:root {
    --primary-color: #00808a;
    /* Тот самый темно-бирюзовый со скрина */
    --primary-hover: #00666e;
    --bg-color: #f3f5f9;
    /* Нежный светлый фон */
    --input-bg: #f2f4f6;
    /* Серый фон инпутов */
    --text-main: #212529;
    --text-muted: #6c757d;
    --text-link: #00808a;
    --border-radius-lg: 24px;
    --border-radius-sm: 16px;
    --shadow-btn: 0 4px 15px rgba(0, 128, 138, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.mobile-container {
    width: 100%;
    max-width: 414px;
    height: 100vh;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    padding: 0;
    /* Убираем глобальные отступы */
    overflow-y: auto;
    position: relative;
}

.auth-container {
    padding: 60px 30px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Занимает всю высоту */
}

@media (min-height: 800px) {

    /* Центрируем только формы входа, если экран высокий */
    .auth-container {
        justify-content: center;
    }
}

.logo-section {
    text-align: center;
    margin-bottom: 50px;
}

.logo-card {
    width: 180px;
    height: 180px;
    margin-bottom: 30px;
    overflow: hidden;
    display: inline-block;
    background: transparent;
}

.logo-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Если у самой картинки внутри есть белые поля, 
       немного увеличим её, чтобы она была "на весь блок" */
    transform: scale(1.1);
}

.logo-section h1 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.logo-section p {
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 500;
}

/* Форма */
.login-form {
    width: 100%;
}

.input-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
}

.input-control {
    width: 100%;
    padding: 22px 55px;
    /* Большие отступы под иконки */
    background: var(--input-bg);
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 17px;
    font-weight: 500;
    color: var(--text-main);
    transition: all 0.2s;
}

.input-control::placeholder {
    color: #9da5ad;
}

.input-control:focus {
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(0, 128, 138, 0.1);
}

.eye-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #adb5bd;
    cursor: pointer;
}

/* Дашборд и Главная */
.dashboard {
    padding: 20px;
    /* Компактные отступы как в мобильных приложениях */
    padding-bottom: 100px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #adb5bd;
    overflow: hidden;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-text .role-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: #868e96;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1px;
}

.group-pill {
    background: #3c939b;
    color: white;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
}

.user-text h2 {
    font-size: 20px;
    font-weight: 900;
    color: #1a1e23;
    letter-spacing: -0.5px;
    line-height: 1;
}

.header-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: none;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: #495057;
    position: relative;
    text-decoration: none;
    /* Убираем подчеркивание */
}

.notification-dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 6px;
    height: 6px;
    background: #fa5252;
    border-radius: 50%;
    border: 2px solid white;
}

/* Слайдер категорий */
.category-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 25px;
    scrollbar-width: none;
}

.category-slider::-webkit-scrollbar {
    display: none;
}

.cat-card {
    min-width: 130px;
    height: 160px;
    border-radius: 20px;
    background: #333;
    position: relative;
    overflow: hidden;
    color: white;
    flex-shrink: 0;
}

.cat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
}

.cat-label {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cat-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 128, 138, 0.9);
    /* Используем brand color */
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Секции */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #adb5bd;
    letter-spacing: 0.5px;
}

.section-link {
    font-size: 13px;
    color: #4dabf7;
    text-decoration: none;
    font-weight: 600;
}

.card {
    background: white;
    border-radius: 24px;
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.next-class-card {
    display: flex;
    gap: 20px;
    align-items: center;
}

.class-time-block {
    text-align: center;
    min-width: 60px;
}

.time-main {
    font-size: 22px;
    font-weight: 800;
}

.time-sub {
    font-size: 12px;
    color: #adb5bd;
}

.class-info-block {
    border-left: 3px solid #ff922b;
    /* Оранжевая полоска как на скрине */
    padding-left: 15px;
}

.type-tag {
    display: inline-block;
    background: #fff4e6;
    color: #fd7e14;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.class-name {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
    line-height: 1.3;
}

.class-meta {
    font-size: 13px;
    color: #868e96;
}

/* Сетка БРС и Дедлайнов */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    padding: 20px;
    border-radius: 24px;
    color: white;
}

.brs-card {
    background: var(--primary-color);
}

.deadline-card {
    background: #1a1e23;
}

.stat-title {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
    opacity: 0.8;
}

.stat-value {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-desc {
    font-size: 11px;
    opacity: 0.7;
}

/* Лента новостей */
.news-card {
    padding: 0;
    overflow: hidden;
}

.news-img {
    height: 160px;
    background: #e9ecef;
    position: relative;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: white;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
}

.news-content {
    padding: 20px;
}

.news-title {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.news-date {
    font-size: 12px;
    color: #adb5bd;
}

.news-more {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
}

/* Нижняя навигация */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 414px;
    /* Ровно по ширине контейнера */
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
    border-radius: 0;
    /* НИКАКИХ СКРУГЛЕНИЙ */
}

.nav-item {
    text-align: center;
    color: #949ba5;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    flex: 1;
    padding: 10px 0 12px 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.2s;
}

/* Индикатор сверху как на скрине */
.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    /* Более короткий индикатор */
    height: 3px;
    background: var(--primary-color);
    border-radius: 0 0 4px 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item.active::before {
    opacity: 1;
}

.nav-icon {
    font-family: 'Material Symbols Outlined';
    font-size: 24px;
    display: block;
    margin-bottom: 2px;
    font-style: normal;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.nav-item.active .nav-icon {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.form-extras {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 5px;
}

.remember-me {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.remember-me input {
    margin-right: 10px;
    accent-color: var(--primary-color);
}

.forgot-link {
    font-size: 14px;
    color: var(--text-link);
    text-decoration: none;
    font-weight: 700;
}

.btn-login {
    width: 100%;
    background: var(--primary-color);
    color: white;
    padding: 22px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 18px;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: var(--shadow-btn);
    transition: transform 0.1s, background 0.2s;
}

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

.btn-login:hover {
    background: var(--primary-hover);
}

.footer-info {
    margin-top: auto;
    display: flex;
    justify-content: center;
    gap: 30px;
    padding-top: 40px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #adb5bd;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}

.alert {
    background: #fff0f0;
    color: #e03131;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
    font-weight: 500;
}