@import url('https://fonts.googleapis.com/css?family=Lato:100&display=swap');
html{
    background-image: url("../images/background.jpg");
    background-size: cover;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Jura', sans-serif;
}
.login-container{
     border-radius: 44px;
     background: rgba(66, 86, 49, 0.64);  /* Радиус скругления */
     padding: 10px;        /* Отступы внутри блока */
     position: absolute;
     top: 50%;
     left: 50%;
     transform: translate(-50%, -50%);
     width: 60vw; /* 60% от ширины viewport */
     max-width: 777px; /* Ограничиваем максимальный размер */
     height: 60vh; /* 60% от высоты viewport */
     max-height: 560px; /* Ограничиваем максимальный размер */
     display: flex;
     flex-direction: column;
     align-items: center; /* Выравнивание по горизонтали */
     justify-content: center; /* Выравнивание по вертикали */
     min-height: 80vh; /* Минимальная высота контейнера */

}
.login-container.aa{
     width: 90vw; /* 60% от ширины viewport */
     max-width: 1334px; /* Ограничиваем максимальный размер */
     height: 90vh; /* 60% от высоты viewport */
     max-height: 753px; /* Ограничиваем максимальный размер */
}
.login-title{
    text-align: center;
    color: #ffffff;
    margin-bottom: 3rem;
}
.login-title.home{
  margin-bottom: 25rem;
}
.form-group{
    width: 100%;
    margin-bottom: 1.5rem;
}
.login-form{
    width: 100%;
    max-width: 400px; /* Оптимальная ширина формы */
    display: flex;
    flex-direction: column;
    align-items: center;
}
.wrapper{
  width: 80%;
  padding: 12px;
  margin-top: 3rem;
}

.link_wrapper{
  position: relative;
}

a{
  display: block;
  width: 250px;
  height: 50px;
  line-height: 50px;
  font-weight: bold;
  text-decoration: none;
  background: rgba(210, 210, 210, 0);
  text-align: center;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 3px solid #ffffff;
  transition: all .35s;
}

.icon {
  width: 50px;
  height: 50px;
  border: 3px solid transparent;
  position: absolute;
  transform: rotate(45deg);
  right: 0;
  top: 0;
  z-index: -1;
  transition: all .35s;
  display: flex;          /* Добавлено для центрирования */
  align-items: center;    /* Центрирование по вертикали */
  justify-content: center; /* Центрирование по горизонтали */
}

.icon svg {
  width: 30px;
  transform: rotate(-45deg); /* Убрано абсолютное позиционирование */
  fill: #ffffff;
  transition: all .35s;
  position: relative;     /* Изменено с absolute на relative */
}

a:hover{
  width: 200px;
  border: 3px solid #ffffff;
  background: transparent;
  color: #ffffff;
}

a:hover + .icon{
  border: 3px solid #ffffff;
  right: -25%;
}
.form__group {
  position: relative;
  padding: 15px 0 0;
  width: 80%; /* Было 50% - увеличиваем */
  max-width: 600px; /* Добавляем максимальную ширину */
  
}

.form__field {
  font-family: inherit;
  width: 100%;
  border: 0;
  border-bottom: 2px solid #ffffff;
  outline: 0;
  font-size: 1.3rem;
  color: #fff;
  padding: 7px 0;
  background: transparent;
  transition: border-color 0.2s;
}
.form__field::placeholder {
  color: transparent;
}
.form__field:placeholder-shown ~ .form__label {
  font-size: 1.3rem;
  cursor: text;
  top: 20px;
}

.form__label {
  position: absolute;
  top: 0;
  display: block;
  transition: 0.2s;
  font-size: 1rem;
  color: #ffffff;
}

.form__field:focus {
  padding-bottom: 6px;
  font-weight: 700;
  border-width: 3px;
  border-image: linear-gradient(to right, #ffffff, #ffffff);
  border-image-slice: 1;
}
.form__field:focus ~ .form__label {
  position: absolute;
  top: 0;
  display: block;
  transition: 0.2s;
  font-size: 1rem;
  color: #ffffff;
  font-weight: 700;
}

/* reset input */
.form__field:required, .form__field:invalid {
  box-shadow: none;
}
.log{
    margin-bottom:2rem ;
    width: 100%;
    text-align: center;
    color: #ffffff;
    margin-left: 2rem;
}
button.link_wrapper {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 250px;
    height: 50px;
    line-height: 50px;
    font-weight: bold;
    text-decoration: none;
    background: rgba(210, 210, 210, 0);
    text-align: center;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 3px solid #ffffff;
    transition: all .35s;
    position: relative;
    margin: 0 auto;
}

/* Стили для сообщения об ошибке */
.error-message {
    text-align: center;
    margin-bottom: 20px;
    color: #ff6b6b;
    font-weight: bold;
}
/*Cтили домашних кнопок*/
.container {
  width: min(25vw, 600px);  /* Увеличено с 20vw */
  height: min(15vw, 600px); /* Увеличено с 20vm (исправлена опечатка) */
  position: absolute;
  left: 50%;                 /* Изменено с 30% для лучшего центрирования */
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
}
.container.new{
  left: 20%;
}
.container.inwork{
  left: 80%;
}
.container.done{
  top: 80%;
}
.center {
  width: 93%;               /* Занимает всю ширину .center */
  height: 52%;    /* Увеличено */
  position: absolute;
}

.btn {
  width: 100%;               /* Занимает всю ширину .center */
  height: 100%;              /* Занимает всю высоту .center */
  cursor: pointer;
  background: transparent;
  border: 1px solid #ffffff; /* Увеличена толщина */
  outline: none;
  transition: 0.5s ease-in-out;
  position: relative;        /* Для позиционирования svg */
}

svg {
  width: 100%;               /* Занимает всю кнопку */
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  fill: none;
  stroke: #fff;
  stroke-width: 1;           /* Увеличена толщина линии */
  stroke-dasharray: 200 580; /* Увеличено для большей кнопки */
  stroke-dashoffset: 200;    /* Увеличено */
  transition: 1s ease-in-out;
}

