* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Красная шапка */
.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 - 100px);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    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;
    }

}