body {
    margin: 0;
    padding: 0;
    /* background-color: #0a0a0a; */
    background-color: #161616;
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-window{
    display: flex; 
    height: 600px;
}

.login-container {
    /* background-color: #111; */
    background-color: #F9D7DE;
    padding: 20px;
    border-radius: 20px;
    width: 300px;
    text-align: center;
    flex: 2;
}

.right-panel{
    display: flex; 
    flex-direction: column; 
    flex: 1; 
    padding-left: 40px;
}

.login-header{
    flex: 2;
}

.login-footer{
    flex: 2;
}

.logo {
    width: 100px;
    margin-bottom: 10px;
}

.login-form .input-group {
    position: relative;
    margin-bottom: 20px;
}

.login-form input {
    width: 100%;
    padding: 12px 20px 12px 10px;
    background: #F9D7DE;
    border: none;
    border-bottom: 1px solid #4A4A4A; /* только нижняя граница */
    color: #4A4A4A;
    box-sizing: border-box;
    outline: none;
    border-radius: 0px;
    font-size: 18px;
}

.login-form input:focus {
    border-bottom: 1px solid #fff;
}

/* prevent color change */
input:-webkit-autofill {
    background-color: #F9D7DE !important; /* твой нужный фон */
    -webkit-box-shadow: 0 0 0 1000px #F9D7DE inset !important;
    -webkit-text-fill-color: #4A4A4A !important;
    transition: background-color 0s ease-in-out 9999s; /* предотвратить анимацию Chrome */
    /* transition: background-color 5000s ease-in-out 0s; */
}

.background-image{
    flex: 2;
}

.icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    opacity: 0.6;
    background: none;
    border: none;
    color: #4A4A4A;
    font-size: 18px;
    cursor: pointer;
}

.login-button {
    width: 100%;
    padding: 12px;
    background-color: #F9D7DE;
    border: 1px solid #4A4A4A;
    border-radius: 20px;
    color: #4A4A4A;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    box-sizing: border-box;
    margin-bottom: 20px;
  }

.login-button:hover {
    background: #EEC2CC;
    color: #4A4A4A;
}

.caps-warning {
    font-size: 12px;
    font-weight: bold;
    /* color: #d40000; */
    text-align: center;
    height: 16px;
    visibility: hidden;
    transition: visibility 0.2s;
    margin-bottom: 10px;
}

.caps-warning.visible {
    visibility: visible;
}

.cl-on {
    color: #d40000;
}

.cl-off{
    color: #4A4A4A;
}

.background-img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-right: 1px solid white;
}

.signup-link {
    text-align: center;
    margin-top: 10px;
}

.signup-link a {
    font-size: 18px;
    color: #4A4A4A;
    text-decoration: none;
}

.signup-link a:hover {
    text-decoration: underline;
}

/* Loading indicator - spinner */
.login-container {
    position: relative;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(249, 215, 222, 0.7);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4A4A4A;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}