html, body {
    height: 100%;
    overflow: hidden;
}

body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 350px;
    background-image: none !important;
    background-color: #ddefff !important;
}

.form-container {
    background: rgba(248, 249, 250);
    border: 2px solid rgba(244, 244, 244, 0.75);
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.btn-custom {
    background: linear-gradient(90deg, #0056F8, #00A1FF);
    box-shadow: 0 8px 24px hsla(210, 100%, 50%, 0.5);
    color: white !important;
}

.btn-custom:hover {
    box-shadow: 0 12px 24px hsla(210, 70%, 60%, 0.5);
    color: black;
}

.btn-custom:active,
.btn-custom.active {
    transform: translateY(0);
    box-shadow: 0 4px 8px hsla(244, 75%, 48%, 0.3);
    background: linear-gradient(90deg, #0056F8, #00A1FF) !important;
    text-decoration-color: white;
}

.btn-custom.animation-started::after {
    transform: scale(1);
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 10%, transparent 10.01%);
    transform: scale(10);
    opacity: 0;
    transition: transform 0.5s, opacity 0.5s;
}

a {
    color: #00A1FF;
    text-decoration: none;
    font-weight: var(--font-semi-bold);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: #0056F8;
    text-shadow: 0 0 8px hsla(210, 100%, 70%, 0.5);
}

.login__container {
    background-image: url("../img/background_fhd.png");
    background-size: cover;
    background-position: bottom center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container-fluid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    justify-content: center !important;
    margin: 0 auto;
    padding: 0 15px;
}

footer {
    padding: 1rem;
    text-align: left;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 100;
}

.alert {
    margin-top: 10px;
}

.alert-warning {
    flex: 0 0 auto;
    padding: 1rem;
    font-size: 14px;
}

.content-wrap {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 20px 0;
}


.logo-container {
    position: relative;
    height: auto;
    margin: auto;
    max-width: 400px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.navbar-brand img {
    max-width: 20vw;
    width: auto;
    height: auto;
    object-fit: contain;
    max-height: 35px;
}

.login_logo img {
    max-width: 40vw !important;
    width: auto;
    height: auto;
    object-fit: contain;
    max-height: 35px;
}

.form-signin {
    min-width: 280px;
}

.footer {
    flex: 0 0 auto;
    padding: 10px;
    background: white;
    border-top: 1px solid #ddd;
    text-align: center;
}

@media (max-height: 600px) {
    .alert-warning {
        padding: 0.5rem;
        font-size: 12px;
    }
    
    h1 {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    input.form-control {
        font-size: 16px;
    }
    
    button.btn {
        font-size: 16px;
    }
}
/* Для Safari */
@media not all and (min-resolution:.001dpcm) { 
    @supports (-webkit-appearance:none) {
      .form-container {
        transform: translateY(0);
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        margin: auto;
        max-width: 400px;
        width: 90%;
      }
    }
  }