@font-face {
    font-family: 'mtswide';
    src: url('/css/MTSWide-Medium.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'mtswide';
    src: url('/css/MTSWide-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'mtscompact';
    src: url('/css/MTSCompact-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'mtstext';
    src: url('/css/MTSText-Regular.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'mtswide', sans-serif;
    min-height: 100vh;
    color: var(--spring-dark);
}

a {
    color: rgb(0, 119, 219);
}

.text-mts {
    font-family: 'mtstext';
    margin-bottom: 8px;
    font-size: 14px;
    color: #626c77;
}

.text-mc {
    font-family: 'mtscompact', sans-serif;

}

.container-login {
    width: 720px;
}

.default-bg {
    background-image: url('/images/bg.png');
    background-size: cover;
}
    
.login-bg {
    background: url('/images/login-bg.png');
    background-size: cover;
}

/* Шапка */
.logo {
    width: 44px;
    height: 44px;
    background-image: url(/images/logo.png);
    background-size: cover;
    background-colr: #ff0033;
}

.logo2 {
    width: 207px;
    height: 51px;
    background-image: url(/images/logo2.png);
    background-size: cover;
}

@media (max-width: 430px) {
    .logo2 {
        width: 150px;
        height: 37px;
    }
}

@media (max-width: 353px) {
    .logo2 {
        display: none;
    }
}
/* Шапка */
.header {
    z-index: 10;
    padding: 20px 20px;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.nav-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
}

@media (max-width: 1080px) {
    .nav-buttons {
        display: none;
    }
}

.nav-btn {
    border: none;
    font-weight: 400;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    margin: 0;
    height: 44px;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    font-family: "mtswide", "mtscompact", Arial, sans-serif;
    line-height: 24px;
    border-radius: 25px;
    letter-spacing: 0.05em;
    padding: 10px 10px;
    font-size: 12px;
}


.nav-btn-red {
    background: #ff0033;
    color: white;
}

.nav-btn-red:hover {
    background: #e6002e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 51, 0.4);
}

.nav-btn-white {
    background: none;
    color: white;
    border: 1px solid white;
}

.nav-btn-white:hover {
    background:  #ff0033;
    border-color: #ff0033;
    /*transform: translateY(-2px);*/
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}



/* бургер */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    margin-left: auto;
}

@media (max-width: 1080px) {
    .burger-btn {
        display: flex;
    }
}

.burger-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: #ff0033;
    border-radius: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(255, 0, 51, 0.3);
}

.burger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: white;
}

.burger-btn.active span:nth-child(2) {
    opacity: 0;
}

.burger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: white;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: right 0.3s ease;
    padding: 100px 30px 30px;
    overflow-y: auto;
}

@media (max-width: 480px) {
    .mobile-menu {
        width: 100%;
        right: -100%;
    }
}

@media (max-width: 1080px) {
    .mobile-menu {
        display: block;
    }

    .mobile-menu-overlay {
        display: block;
    }

}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    display: block;
}

.mobile-nav-item {
    display: block;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 15px;
    font-weight: 400;
    font-size: 14px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-align: center;
}

.mobile-nav-item.red {
    background: #ff0033;
    color: white;
}

.mobile-nav-item.white {
    background: #f0f0f0;
    color: #333;
}

.mobile-user-block {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #eee;
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-user-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}




/* Недели контент */

.weeks-grid {
    display: grid;
    row-gap: 10px;
    column-gap: 10px;  
    justify-content: center;  

    grid-template-columns: 2fr repeat(7, 1fr) ;
    grid-template-rows: 40px repeat(4, 1fr);

    grid-template-areas:
        "empty week1 week2 week3 week4 week5 week6 week7"
        "monday t1 t4 t7 t10 t14 t18 t21"
        "wednesday t2 t5 t8 t11 t15 t19 t22"
        "thursday t3 t6 t9 t12 t16 t20 t23"
        "friday ed1 ed2 ed3 t13 t17 ed4 ed5"
        ;
}

@media (max-width: 1080px) {
    .weeks-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        grid-template-rows: 130px 52px 130px 52px 130px 52px 130px 52px 130px 52px 130px 52px 130px 52px 130px;
        gap: 20px;
        grid-template-areas:
            "monday wednesday thursday friday"
            "week1 week1 week1 week1"
            "t1 t2 t3 ed1"
            "week2 week2 week2 week2"
            "t4 t5 t6 ed2"
            "week3 week3 week3 week3"
            "t7 t8 t9 ed3"
            "week4 week4 week4 week4"
            "t10 t11 t12 t13"
            "week5 week5 week5 week5"
            "t14 t15 t16 t17"
            "week6 week6 week6 week6"
            "t18 t19 t20 ed4"
            "week7 week7 week7 week7"
            "t21 t22 t23 ed5";
    }
}

.week-tab {
    background: #74BAFF;
    padding: 12px 12px;
    border-radius: 25px;
    font-weight: 400;
    font-size: 14px;
    border: 2px solid transparent;
    text-transform: uppercase;
    font-family: "mtswide", "mtscompact", Arial, sans-serif;
    color: white;
    justify-content: center;
    letter-spacing: 1px;
    line-height: 14px;
    text-align: center;
}

.day-card {
    background: white;
    border-radius: 20px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
@media (max-width: 1300px) {
    .day-card {
        height: 130px;
    }
}

@media (max-width: 1200px) {
    .day-card {
        height: 110px;
    }
}

.day-card.red {
    background: #ff0033;
    color: white;
}


.day-name {
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
}

.track-label {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ff0033;
}

.day-card.red .track-label {
    color: #fff;
}

.track-title {
    font-size: 18px;
    line-height: 1.1;
}

@media (max-width: 1200px) {
    .track-title {
        font-size: 13px;
    }
}
/* Основной контент */

.main-content {
    position: relative;
    z-index: 10;
    padding: 20px 150px;
}




/* Недели */
.weeks-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}



.week-tab.active {
    background: #ff0033;
    color: white;
}



.week-card {
    background: rgba(255, 255, 255, 0.35);
    aspect-ratio: 1 / 1; 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    align-items: stretch;

}

@media (max-width: 1300px) {
    .week-card {
        height: 130px;
    }
}

@media (max-width: 1200px) {
    .week-card {
        height: 110px;
    }
}


.week-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.week-card.red {
    background: #ff0033;
    color: white;
}

.week-card.white {
    background: #fff;
    color: black;
}

.week-card.locked {
    background: rgba(255, 255, 255, 0.25) url('/images/lock.png') center no-repeat;

    cursor: not-allowed;
    align-items: center;
    justify-content: center;
}

.week-card.locked:hover {
    transform: none;
}



.week-header {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.week-number {
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
    padding-top: 5px;
}

@media (max-width: 1200px) {
    .week-number {
        font-size: 22px;
        font-weight: 400;
        line-height: 1;
    }
}

.week-icon {
    width: 38px;
    height: 29px;
    display: block;
}

.week-icon.white {
    background: url('/images/task-done-white.png');
    background-size: cover;
}
.week-icon.red {
    background: url('/images/task-done-red.png');
    background-size: cover;
}

@media (max-width: 1200px) {
    .week-icon {
        width: 31px;
        height: 24px;
    }
}

.week-card.active .week-icon {
    background: white;
    color: #ff0033;
}

.week-title {
    font-size: 12px;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding-bottom: 7px;
}



@media (max-width: 1200px) {
    .week-title {
        font-size: 9px;
    }
}

/* Красная шапка */
.top-banner {
    background-color: #ff0033;
    color: white;
    padding: 25px 0;
    text-align: center;
    font-size: 38px;
    font-weight: 400;
    letter-spacing: 2px;
    height: 100px;
}

.top-banner-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin-top: -8px;
}

/* Основной фон с градиентом */
.main-container {
    min-height: calc(100vh - 90px);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.outer-panel {
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 40px 100px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);  
}

/* Центральная карточка */
.auth-card {
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 10;
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.auth-subtitle {
    font-size: 15px;
    font-family: 'mtstext';
    margin-bottom: 30px;
    line-height: 1.5;
}

.form-label {
    font-family: 'mtstext';
    margin-bottom: 8px;
    font-size: 14px;
    color: #626c77;
}

.form-control.mts-form-control {
    display: block;
    flex-grow: 1;
    padding: 15px;
    width: 100%;
    font-size: 17px;
    border-radius: 8px;
    outline: none;
    max-width: initial;
    height: initial;
    font-family: 'mtstext';
    font-size: 17px;
    background-color: var(--color-background-secondary);    
}

.form-control.is-invalid {
    background: none !important;
    padding-right: 0 !important;
}

.form-control.mts-form-control:focus {
    box-shadow: none;
}

.form-control.mts-form-control:hover:not(:focus-within):not([aria-disabled]) {
    border-color: #000;
  }

.form-control.mts-form-control.error {
    border-color: #ff0033;
}

.form-control.mts-form-control.mts-form-control-code {
    font-size: 1.5rem; 
    letter-spacing: 20px;
}

.auth-card .invalid-feedback {
    width: 100%;
    margin-top: 5px;
    text-align: left;
    font-family: "mtscompact";
    font-weight: 400;
    font-style: normal;
    font-size: 12px;
    line-height: 16px;
    color: rgb(255, 0, 50);
    align-items: center;    
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0;
    font-size: 18px;
}

.error-message {
    color: #ff0033;
    font-size: 13px;
    margin-top: 6px;
}

.remember-me {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    border: 2px solid #ddd;
}

.form-check-input:checked {
    background-color: #ff0033;
    border-color: #ff0033;
}

.form-check-label {
    color: #555;
    font-size: 14px;
    cursor: pointer;
    margin: 0;
}

.btn.mtsbrand {
    min-width: 160px;
    padding: 11.63px 23px;
    font-family: "mtscompact";
    font-style: normal;
    font-weight: 400;
    font-size: 17px;
    line-height: 24px;
    align-items: center;
    text-align: center;
    border-radius: 6px;
    background: #ff0032;
    color: #fff !important;
}
.btn.mtsbrand:hover {
    min-width: 160px;
    padding: 11.63px 23px;
    font-family: "mtscompact";
    font-style: normal;
    font-weight: 400;
    font-size: 17px;
    line-height: 24px;
    align-items: center;
    text-align: center;
    border-radius: 6px;
    background: #ff0032;
    color: #fff !important;
}

/* Адаптивность */
@media (max-width: 768px) {

    .auth-card {
        padding: 30px 25px;
    }

    .auth-title {
        font-size: 20px;
    }

    .top-banner {
        font-size: 30px;
        padding: 12px 0;
        height: 70px;
    }

    .outer-panel {
        padding: 40px;
    }

    .main-container {
        min-height: calc(100vh - 70px);
    }

    .form-control.mts-form-control.mts-form-control-code {
        font-size: 1.5rem; 
        letter-spacing: 47px;
    }

}

@media (max-width: 480px) {
    .top-banner {
        font-size: 14px;
        padding: 12px 0;
        height: 42px;
    }
    .outer-panel {
        padding: 40px;
    }

    .form-control.mts-form-control.mts-form-control-code {
        font-size: 1.5rem; 
        letter-spacing: 23px;
    }

    .main-container {
        min-height: calc(100vh - 42px);
    }

    .top-banner-icon {
        width: 22px;
        height: 22px;
        margin-top: -4px;
    }

    .main-container {
        padding: 20px 15px;
    }

    .auth-card {
        padding: 25px 20px;
        border-radius: 15px;
    }

}
