*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  --hover: #a78bfa;
  --color-text: #aaaaaa;
}

.wrapper-auth{
  width: 500px;
  background: transparent;
  border: 2px solid rgb(255, 255, 255, .1);
  backdrop-filter: blur(20px);
  box-shadow: 0 0 10px rgba(0, 0, 0, .2);
  color: var(--color-text);
  border-radius: 15px;
  padding-bottom: 180px;
  padding-top: -30px;
  padding-right: 40px;
  padding-left: 40px;
}

.wrapper-auth .logo{
  display: block;
  max-width: 300px;
  margin: 0 auto 20px;
}

.wrapper-auth h1{
  font-size: 40px;
  text-align: right;
  margin: 0 0 55px;
  width: 25%;
}

.wrapper-auth .input-box{
  width: 100%;
  height: 50px;
  margin: 30px 0;
  position: relative;
}

.input-box input{
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  border-bottom: 3px solid rgb(255, 255, 255, .2);
  border-radius: 40px;
  font-size: 16px;
  color: #aaaaaa;
  padding: 20px 45px 20px 20px;
}

.input-box input::placeholder{
  color: var(--color-text);
}

.input-box i{
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
}

.wrapper-auth .remember{
  display: flex;
  justify-content: space-between;
  font-size: 14.5px;
  margin: 10px 0 15px;
}

.remember label input{
  accent-color: var(--hover);
  margin-right: 6px;
}
.remember a{
  color: #a78bfa;
  text-decoration: none;
}
.remember a:hover{
  color: var(--hover);
  text-decoration: underline;
}

.wrapper-auth .btn{
  width: 100%;
  height: 45px;
  background: var(--hover);
  border: none;
  border-radius: 40px;
  box-shadow: 0 0 15px rgb(0, 0, 0, .1);
  cursor: pointer;
  font-size: 16px;
  color: black;
  font-weight: 600;
  margin-top: 20px;
}

.wrapper-auth .btn:hover {
  background: #7c3aed;
  transform: translateY(-2px);
  animation: glow 0.4s forwards ease;
}
@keyframes glow {
  0% {
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.0);
  }
  100% {
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.8);
  }
}

.wrapper-auth .register-link{
  font-size: 14.5px;
  text-align: center;
  margin-top: 20px;
}

.register-link p a{
  color: #a78bfa;
  text-decoration: none;
  font-weight: 600;
}

.register-link p a:hover{
  color: var(--hover);
  text-decoration: underline;
}


.oauth-separator{
  position: relative;
  text-align: center;
  margin: 24px 0 14px;
  color: var(--color-text);
  font-size: 14px;
  user-select: none;
}
.oauth-separator::before,
.oauth-separator::after{
  content: "";
  position: absolute;
  top: 50%;
  width: 38%;
  height: 1px;
  background: rgba(255,255,255,0.16);
}
.oauth-separator::before{ left: 0; }
.oauth-separator::after{ right: 0; }
.oauth-separator span{
  padding: 0 10px;
  letter-spacing: .2px;
}

.oauth-buttons{
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: center;
  margin-bottom: 6px;
}

.oauth-btn{
  width: 120px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.35);
  box-shadow: 0 0 10px rgba(0,0,0,0.15) inset;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  cursor: not-allowed;
}
.oauth-btn i{
  font-size: 22px;
  color: #cfcfcf;
}

.oauth-btn:hover{
  transform: translateY(-2px);
  background: rgba(20,20,20,0.55);
  border-color: rgba(124,58,237,0.35);
  box-shadow: 0 0 14px rgba(124,58,237,0.25);
}
.oauth-btn:active{
  transform: translateY(0);
  box-shadow: 0 0 6px rgba(124,58,237,0.25);
}




/* Правая панель */
.wrapper-board{
  width: 1350px;
  height: 900px;
  background: transparent;
  border: 2px solid rgb(255 255 255 / .1);
  backdrop-filter: blur(20px);
  box-shadow: 0 0 10px rgba(0,0,0,.2);
  color: var(--color-text);
  border-radius: 15px;
  padding: 30px 40px 40px;
  display: flex;
  flex-direction: column;
  margin-left: 40px;
  margin-right: 40px;
}

.wrapper-board h2{
  font-size: 28px;
  margin: 0 0 10px;
  color: #e5e5e5;
  font-weight: 700;
}
.wrapper-board .board-text{
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 16px;
  white-space: pre-line;
}

.board-media{
  width: 100%;
  height: 500px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgb(255 255 255 / .06);
  box-shadow: 0 0 10px rgba(0,0,0,.15) inset;
}

.wrapper-board .board{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
img{
  max-width: 100%;
  height: auto;
}

/* Модалка */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 5, 20, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
.modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.modal-wrapper {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  z-index: 2000;
  width: 90%;
  max-width: 420px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.modal-wrapper.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.modal-content {
  position: relative;
  padding: 30px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  color: var(--color-text);
  border-radius: 15px;
  text-align: center;
}

.modal-close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
}
.modal-close-btn:hover {
  color: #fff;
}

.modal-content h2 {
  color: #fff;
  font-size: 24px;
  margin: 0 0 10px;
}
.modal-description {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.modal-spam-notice {
  font-size: 13px;
  color: #888;
  margin-top: 20px;
}

.modal-input-group {
  margin-bottom: 20px;
}

#reset-email-input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(0,0,0,0.2);
  color: #fff;
  font-size: 16px;
  outline: none;
  text-align: center;
  transition: border-color .2s, box-shadow .2s;
}
#reset-email-input:focus {
  border-color: var(--hover);
}

.modal-submit-btn {
  width: 100%;
}
.input-error-message {
  display: block;
  color: #ff6b6b;
  font-size: 13px;
  margin-top: 8px;
  min-height: 16px;
}

.modal-submit-btn {
  width: 100%;
  height: 45px;
  background: var(--hover);
  border: none;
  border-radius: 40px; /* Сохраняем стиль основной кнопки */
  box-shadow: 0 0 15px rgba(0, 0, 0, .1);
  cursor: pointer;
  font-size: 16px;
  color: #000000; /* Черный цвет текста для контраста */
  font-weight: 600;
  margin-top: 10px; /* Небольшой отступ сверху */
  transition: all 0.2s ease;
}

.modal-submit-btn:hover:not(:disabled) {
  background: #7c3aed;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.8);
}

.modal-submit-btn:disabled {
  background: #5f5f6e;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

#reset-email-input.glowing-border-error {
  border-color: #ff6b6b;
  animation: glow-error 0.8s ease-out;
}
@keyframes glow-error {
  0%, 100% { box-shadow: 0 0 8px rgba(255, 107, 107, 0); }
  50% { box-shadow: 0 0 16px rgba(255, 107, 107, 0.7); }
}
