.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center; 
  align-items: center; 
  z-index: 1000;
  padding: 20px; 
  overflow-y: auto;  
  box-sizing: border-box;
  top: 0;  
}

.modal-window {
  background: white;
  max-width: 300px;
  width: 100%;
  height: auto; 
  max-height: 90vh;  
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  border: 1.8px solid #ccc;
  border-radius: 8px;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto; 
  position: relative;
}
 

#user-dialog-close {
position: absolute; 
top: 0px; 
right: 8px; 
background: transparent; 
border: none; 
font-size: 27px;
color: rgb(131, 131, 131); 
cursor: pointer; 
line-height: 1;
 padding: 0
}


#user-dialog-close:hover {

color: rgb(45, 45, 45); 

}


*, *::before, *::after {
  box-sizing: border-box;
}


#cross_top{
 margin-top:20px;
}




.modal-window .manifest{
text-align: center;
font-size: 20px;
font-weight: 900;
}

.modal-window input[type="text"], input[type="password"]  {
  width: 100%;
  padding: 9px 12px;
  margin-bottom: 20px !important;
  border: 1.8px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
}
 
.modal-window   button[type="submit"] {
  width: 100%;

  border: 1.8px solid #ccc;
  padding: 10px;
  background-color: #FFEB3B;
  border-radius: 8px;
  color: #000000;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
  color: gray;
  text-align: left;
  opacity: 1;
}

#key_reg{
  width: 100%;
 background-color: #ffffff;
 border: 1.8px solid #ccc;
 text-align: center;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
  cursor: pointer;
}


#key_recower{  
  
cursor: pointer;
width: 100%;
text-align: center;;
 padding:15px 0;
 text-decoration: underline;
}
 

.modal-window .errorMessage{
font-size: 12px;
text-align: center;;
}




#countdown {
  display: flex;
  justify-content: center; /* горизонтально */
  align-items: center;     /* вертикально */
  font-weight: 900;
  color: #CCCCCC;
  width: 100%;
  padding: 0 0 0 0;
  height: 50px; /* или другая высота */
}



.action{
  display:flex;
  width: 100%;
  justify-content: space-between;
  padding-top:25px;

}

.action>div:hover{
  cursor: pointer;
color:#CCCCCC
}

.dropdown-menu.show {
  display: block !important;
}

#user {
  position: relative !important; 
  display: inline-block !important;   
}

#user-dropdown-menu {
  position: absolute;
  top: 100%;
  left: -70px;
  display: none;
  background: #fff;
  border: 1px solid #ccc;
  padding: 4px 10px; /* Объединил оба варианта padding */
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border-radius: 4px;
  min-width: 180px;
  z-index: 1000;
}


#user-dropdown-menu.show {
  display: block;  
}
#user-dropdown-menu ul {
  margin: 0;  
  padding: 0; 
  list-style: none;  
}

#user-dropdown-menu ul li {
  text-align: left;
  margin: 0;   
  padding: 0;
}

#user-dropdown-menu ul li a {
  display: block;   
  padding: 8px 15px;  
  color: #333;  
  text-decoration: none;  
  transition: background-color 0.2s ease;
  border-radius: 3px;
}

#user-dropdown-menu ul li a:hover {
  background-color: #f0f0f0;  
  color: #000000;
  cursor: pointer;
}

.consent {
  margin-bottom: 15px;
  font-size: 11px;
  color: #555;
}

.consent input[type="checkbox"] {
  margin-right: 6px;
  vertical-align: middle;
}

button.is-disabled,
button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(0.2);
} 

