/* users/static/users/base_allauth.css */
:root {
    --primary-color: #93c572;
    --primary-light: #c1e0a7;
    --primary-dark: #6b8c5a;
    --background-color: #f8f9fa;
    --text-color: #333;
    --text-light: #6c757d;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.allauth-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}


.allauth-header {
    text-align: center;
    margin-bottom: 30px;
}

.allauth-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.allauth-logo i {
    font-size: 2rem;
}

.allauth-main {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 30px;
    max-width: 500px;
    margin: 0 auto;
}

.allauth-footer {
    text-align: center;
    margin-top: 30px;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Стили для форм allauth */
.allauth-form {
    margin-top: 20px;
}

.allauth-form .form-control {
    margin-bottom: 15px;
}

.allauth-form .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    width: 100%;
    padding: 10px;
}

.allauth-form .btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.allauth-form-links {
    margin-top: 15px;
    text-align: center;
}

.allauth-form-links a {
    color: var(--primary-color);
    text-decoration: none;
}

.allauth-form-links a:hover {
    text-decoration: underline;
}

/* Социальные кнопки */
.socialaccount_providers {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.socialaccount_providers li {
    margin-bottom: 10px;
}

.socialaccount_providers a {
    display: block;
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
}

.socialaccount_providers a:hover {
    background-color: #e9ecef;
}

/* allauth page style */

.allauth-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  background-color: #D9D9D9;
}

.allauth-container > div {
  text-align: center;
}

.allauth-container strong {
  text-align: center;
  color: var(--primary-dark);
}

.allauth-container > div {
  margin: 0 auto;
}

.allauth-container ul {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  align-items: center;
  padding: 0;
  margin: 0 auto;
}

.allauth-container li {
  display: flex;
  align-items: center;
  justify-content: space-around;
  border: none;
}

.allauth-container li > a {
  text-decoration: underline;
  color: blue;
}

.allauth-container > h1 {
  text-align: center;
  color: var(--primary-dark);
}

.allauth-container > p {
  text-align: center;
}

.allauth-container > p > a {
  text-decoration: none;
}

.allauth-container form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.helptext {
  display: none;
}

.allauth-container form > p {
  display: flex;
  justify-content: center;
}

.allauth-container form > p > input {
  border: 2px solid #D9D9D9;
  padding: 0;
}

.allauth-container form > p > input::placeholder {
  font-style: italic;
  align-items: center;
  opacity: 50%;
}

.allauth-container form > p > input[type="email"] {
  padding-left: 2%;
  font-size: 1.2rem;
}

.allauth-container form > p > input[type="password"] {
  padding-left: 2%;
  font-size: 1.2rem;
}
.allauth-container > form > p > label > strong {
  font-size: 1.2rem;
}

.allauth-container h2 {
  text-align: center;
  color: var(--primary-dark);
}

.allauth-container button {
  background-color: var(--primary-dark);
  border: none;
  text-decoration: none;
  color: #D9D9D9;
}

.allauth-container button:hover {
  cursor: pointer;
  transition: 0.2s;
}

.allauth-container button:active {
  color: #000;
}

@media (min-width: 1919.5px) {

  .allauth-container {
    width: 50%;
    max-width: 1200px;
    padding: 20px;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.5);
  }

  .allauth-container strong {
    margin: 0 auto 10px auto;
    font-size: 2.5rem;
    font-weight: bold;
  }

  .allauth-container > div {
    margin: 10px auto;
    width: 80%;
  }

  .allauth-container li {
    height: 50px;
    border-radius: 10px;
  }

  .allauth-container li > a {
    font-size: 1.6rem;
    font-weight: bold;
  }

  .allauth-container > h1 {
    margin: 0 auto 1vw auto;
    font-size: 2.5rem;
    font-weight: bold;
  }

  .allauth-container  p {
    font-size: 1.6rem;
  }

  .allauth-container form {
    width: 90%;
  }

  .allauth-container form > p {
    width: 100%;
  }

  .allauth-container form > p > input {
    margin-left: 10px;
    border-radius: 10px;
  }

  .allauth-container form > p > input::placeholder {
    font-size: 1rem;
  }

  .allauth-container form > p > input[type="email"] {
    padding-left: 2%;
    font-size: 1.6rem;
  }

  .allauth-container form > p > input[type="password"] {
    padding-left: 2%;
    font-size: 1.6rem;
  }
  .allauth-container > form > p > label > strong {
    font-size: 1.6rem;
  }

  .allauth-container button {
    margin: 10px auto;
    width: 65.67%;
    height: 70px;
    border-radius: 25px;
    font-size: 1.6rem;
    font-weight: bold;
  }

  .allauth-container button:hover {
    box-shadow: 0px 0px 3px 10px #fff;
  }

}

@media (min-width: 1279.5px) and ( max-width: 1919.5px) {

  .allauth-container {
    width: 50%;
    max-width: 1200px;
    padding: 20px;
    border-radius: 1.56vw;
    font-weight: bold;
    box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.5);
  }

  .allauth-container strong {
    margin: 0 auto 1vw auto;
    font-size: 1.86rem;
    font-weight: bold;
  }

  .allauth-container > div {
    margin: 1vw auto;
    width: 80%;
  }

  .allauth-container li {
    height: 3vw;
    border-radius: 1.5vw;
  }

  .allauth-container li > a {
    font-size: 1.5rem;
    font-weight: bold;
  }

  .allauth-container > h1 {
    margin: 0 auto 1vw auto;
    font-size: 1.86rem;
    font-weight: bold;
  }

  .allauth-container  p {
    font-size: 1.5rem;
  }

  .allauth-container form {
    width: 90%;
  }

  .allauth-container form > p {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .allauth-container form > p > input {
    margin-left: 1vw;
    border-radius: 1vw;
  }

  .allauth-container form > p > input::placeholder {
    font-size: 1rem;
  }

  .allauth-container form > p > input[type="email"] {
    padding-left: 2%;
    font-size: 1.2rem;
  }

  .allauth-container form > p > input[type="password"] {
    padding-left: 2%;
    font-size: 1.2rem;
  }
  .allauth-container > form > p > label > strong {
    font-size: 1.2rem;
  }

  .allauth-container button {
    margin: 1vw auto;
    width: 65.67%;
    height: 4vw;
    border-radius: 1.5vw;
    font-size: 1.2rem;
    font-weight: bold;
  }

  .allauth-container button:hover {
    box-shadow: 0px 0px 3px 10px #fff;
  }
}

@media (min-width: 992.5px) and (max-width: 1279.5px) {
  .allauth-container {
    width: 50%;
    max-width: 1200px;
    padding: 20px;
    border-radius: 1.56vw;
    font-weight: bold;
    box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.5);
  }

  .allauth-container strong {
    margin: 0 auto 1vw auto;
    font-size: 1.5rem;
    font-weight: bold;
  }

  .allauth-container > div {
    margin: 1vw auto;
    width: 80%;
  }

  .allauth-container li {
    height: 3vw;
    border-radius: 1.5vw;
  }

  .allauth-container li > a {
    font-size: 1.2rem;
    font-weight: bold;
  }

  .allauth-container > h1 {
    margin: 0 auto 1vw auto;
    font-size: 1.5rem;
    font-weight: bold;
  }

  .allauth-container  p {
    font-size: 1.2rem;
  }

  .allauth-container form {
    width: 90%;
  }

  .allauth-container form > p {
    width: 100%;
  }

  .allauth-container form > p > input {
    margin-left: 1vw;
    border-radius: 1vw;
  }

  .allauth-container form > p > input::placeholder {
    font-size: 1rem;
  }

  .allauth-container form > p > input[type="email"] {
    padding-left: 2%;
    font-size: 1.2rem;
  }

  .allauth-container form > p > input[type="password"] {
    padding-left: 2%;
    font-size: 1.2rem;
  }
  .allauth-container > form > p > label > strong {
    font-size: 1.2rem;
  }

  .allauth-container button {
    margin: 1vw auto;
    width: 65.67%;
    height: 4vw;
    border-radius: 1.5vw;
    font-size: 1.2rem;
    font-weight: bold;
  }

  .allauth-container button:hover {
    box-shadow: 0px 0px 3px 10px #fff;
  }
}

@media (min-width: 768.5px) and (max-width: 992.5px) {
  .allauth-container {
    width: 50%;
    max-width: 1200px;
    padding: 20px;
    border-radius: 1.56vw;
    font-weight: bold;
    box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.5);
  }

  .allauth-container strong {
    margin: 0 auto 1vw auto;
    font-size: 1.25rem;
    font-weight: bold;
  }

  .allauth-container > div {
    margin: 1vw auto;
    width: 80%;
  }

  .allauth-container li {
    height: 3vw;
    border-radius: 1.5vw;
  }

  .allauth-container li > a {
    font-size: 0.9rem;
    font-weight: bold;
  }

  .allauth-container > h1 {
    margin: 0 auto 1vw auto;
    font-size: 1.25rem;
    font-weight: bold;
  }

  .allauth-container  p {
    font-size: 0.9rem;
  }

  .allauth-container form {
    width: 90%;
  }

  .allauth-container form > p {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .allauth-container form > p > input {
    margin-left: 1vw;
    border-radius: 1vw;
  }

  .allauth-container form > p > input::placeholder {
    font-size: 1rem;
  }

  .allauth-container form > p > input[type="email"] {
    padding-left: 2%;
    font-size: 1.2rem;
  }

  .allauth-container form > p > input[type="password"] {
    padding-left: 2%;
    font-size: 1.2rem;
  }
  .allauth-container > form > p > label > strong {
    font-size: 1rem;
  }

  .allauth-container h2 {
    font-size: 1.2rem;
    font-weight: bold;
  }
  
  .allauth-container button {
    margin: 1vw auto;
    width: 65.67%;
    height: 4vw;
    border-radius: 1.5vw;
    font-size: 1rem;
    font-weight: bold;
  }

  .allauth-container button:hover {
    box-shadow: 0px 0px 3px 10px #fff;
  }

}

@media (max-width: 768.5px) {
  .allauth-container {
    width: 95%;
    height: 80%;
    max-width: 1200px;
    padding: 20px;
    border-radius: 1.56vw;
    font-weight: bold;
    box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.5);
  }

  .allauth-container strong {
    margin: 0 auto 1vw auto;
    font-size: 1.25rem;
    font-weight: bold;
  }

  .allauth-container > div {
    margin: 1vw auto;
    width: 80%;
  }

  .allauth-container li {
    height: 7vw;
    font-size: 0.9rem;
    border-radius: 1.5vw;
    line-height: 1.1;
    margin: 1vw auto;
  }

  .allauth-container li > a {
    font-size: 0.9rem;
    font-weight: bold;
  }

  .allauth-container > h1 {
    margin: 0 auto 1vw auto;
    font-size: 1.25rem;
    font-weight: bold;
  }

  .allauth-container  p {
    font-size: 0.9rem;
  }

  .allauth-container form {
    width: 100%;
  }

  .allauth-container form > p {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .allauth-container form > p > label {
    font-size: 0.8rem;
  }
  
  .allauth-container form > p > input {
    margin-left: 1vw;
    border-radius: 1vw;
  }

  .allauth-container form > p > input::placeholder {
    font-size: 1rem;
  }

  .allauth-container form > p > input[type="email"] {
    padding-left: 2%;
    font-size: 1.2rem;
  }

  .allauth-container form > p > input[type="password"] {
    padding-left: 2%;
    font-size: 1.2rem;
  }
  .allauth-container > form > p > label > strong {
    font-size: 0.7rem;
  }

  .allauth-container h2 {
    font-size: 0.9rem;
    font-weight: bold;
  }

  .allauth-container button {
    margin: 1vw auto;
    width: 65.67%;
    height: 7vw;
    border-radius: 1.5vw;
    font-size: 1rem;
    font-weight: bold;
  }

  .allauth-container button:hover {
    box-shadow: 0px 0px 3px 10px #fff;
  }
}