/* NEODROP 2030 - Auth Pages */
:root {
  --primary-color: #0066ff;
  --primary-light: #e6f0ff;
  --primary-dark: #0052cc;
  --bg-color: #f8faff;
  --text-color: #1a1a2e;
  --text-light: #5e6e82;
  --gray-light: #f0f4f9;
  --gray-medium: #d9e2ec;
  --gray-dark: #9fb3c8;
  --error-color: #ff2200;
  --error-light: #ffebe6;
  --success-color: #00c853;
  --warning-color: #ffab00;
  --radius-large: 24px;
  --radius-medium: 16px;
  --radius-small: 8px;
  --shadow-sm: 0 4px 12px rgba(0, 102, 255, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 102, 255, 0.15);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --futuristic-font: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--bg-color) 0%,
    var(--primary-light) 100%
  );
  font-family: var(--futuristic-font);
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  line-height: 1.5;
}

/* Стили для кастомного чекбокса согласия - С ПРАВИЛЬНОЙ ГАЛОЧКОЙ */
.agreement-checkbox {
    margin: 20px 0 25px 0;
    padding: 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-light);
    transition: var(--transition);
    padding: 8px 0;
    margin: 0;
    position: relative;
    flex-wrap: nowrap;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.checkbox-label:hover {
    color: var(--text-color);
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background-color: white;
    border: 2px solid var(--gray-medium);
    border-radius: var(--radius-small);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: var(--shadow-sm);
    margin-top: 2px;
}

.checkbox-label:hover .checkmark {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 45%;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg);
    animation: checkmarkAppear 0.3s ease-out;
}

.checkbox-label input[type="checkbox"]:focus + .checkmark {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

.checkbox-label input[type="checkbox"]:disabled + .checkmark {
    background-color: var(--gray-light);
    border-color: var(--gray-dark);
    cursor: not-allowed;
}

.checkbox-label input[type="checkbox"]:disabled + .checkmark::after {
    border-color: var(--gray-dark);
}

/* Текст чекбокса - занимает оставшееся пространство */
.checkbox-text {
    flex: 1;
    min-width: 0;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Ссылки в тексте */
.checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline;
    white-space: nowrap;
}

.checkbox-label a:hover {
    color: var(--primary-dark);
}

.checkbox-label a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.checkbox-label a:hover::after {
    width: 100%;
}

/* Анимация появления галочки */
@keyframes checkmarkAppear {
    0% {
        transform: translate(-50%, -50%) rotate(45deg) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) rotate(45deg) scale(1.2);
    }
    100% {
        transform: translate(-50%, -50%) rotate(45deg) scale(1);
        opacity: 1;
    }
}

/* Стили для ошибок в чекбоксе согласия */
.agreement-checkbox .errorlist {
    margin-top: 8px;
    animation: errorAppear 0.4s ease-out;
}

.agreement-checkbox .errorlist li {
    background-color: var(--error-light);
    color: var(--error-color);
    border: 1px solid rgba(255, 61, 0, 0.15);
    border-radius: var(--radius-medium);
    padding: 10px 16px;
    font-size: 14px;
    position: relative;
    padding-left: 42px;
    white-space: normal;
}

.agreement-checkbox .errorlist li::before {
    content: '!';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-color: var(--error-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .agreement-checkbox {
        margin: 18px 0 22px 0;
    }
    
    .checkbox-label {
        font-size: 13px;
        gap: 10px;
        align-items: flex-start;
    }
    
    .checkmark {
        width: 18px;
        height: 18px;
        margin-top: 1px;
    }
    
    .checkbox-label input[type="checkbox"]:checked + .checkmark::after {
        width: 4px;
        height: 8px;
        top: 45%;
    }
}

@media (max-width: 480px) {
    .agreement-checkbox {
        margin: 16px 0 20px 0;
    }
    
    .checkbox-label {
        font-size: 12px;
        gap: 8px;
        line-height: 1.3;
    }
    
    .checkmark {
        width: 16px;
        height: 16px;
        margin-top: 0;
    }
    
    .checkbox-label input[type="checkbox"]:checked + .checkmark::after {
        width: 3px;
        height: 7px;
        top: 45%;
        border-width: 0 1.5px 1.5px 0;
    }
}
.auth-container {
  width: 100%;
  max-width: 480px;
  padding: 20px;
  margin-top: 95px; 
  margin-bottom: 30px ;
}

.page-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.auth-card {
  width: 100%;
  background: white;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-md);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  transform: translateY(0);
}

.auth-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 102, 255, 0.18);
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
  position: relative;
}

.auth-header h1 {
  color: var(--primary-color);
  font-weight: 800;
  font-size: 32px;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.auth-header p {
  color: var(--text-light);
  font-size: 16px;
  max-width: 320px;
  margin: 0 auto;
}

.auth-header::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

.form-group {
  margin-bottom: 24px;
  position: relative;
}

.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-color);
  font-size: 15px;
  transition: var(--transition);
}

/* Стили для всех input элементов внутри формы */
.auth-card input[type='text'],
.auth-card input[type='password'] {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--gray-medium);
  border-radius: var(--radius-medium);
  font-size: 16px;
  transition: var(--transition);
  background-color: var(--gray-light);
  font-family: inherit;
}

.auth-card input[type='text']:focus,
.auth-card input[type='password']:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
  background-color: white;
}

/* Phone field styling */
.phone-field {
  position: relative;
}

.phone-prefix {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-weight: 500;
  pointer-events: none;
  z-index: 2;
}

/* Стили для уведомлений */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s ease;
  max-width: 350px;
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
}

.notification.hide {
  transform: translateX(100%);
  opacity: 0;
}

.notification.success {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  border-left: 4px solid #2e7d32;
}

.notification.error {
  background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
  border-left: 4px solid #b71c1c;
}

.notification.info {
  background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
  border-left: 4px solid #0d47a1;
}

/* Стили для таймера */
.timer-blue {
  font-size: 28px;
  font-weight: bold;
  color: #2196f3;
  margin: 15px 0;
  font-family: monospace;
  text-shadow: 0 2px 4px rgba(33, 150, 243, 0.3);
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  padding: 10px 20px;
  border-radius: 10px;
  border: 2px solid #90caf9;
}

.countdown-blue {
  font-size: 14px;
  color: #2196f3;
  font-weight: 600;
  margin-top: 5px;
  background: #e3f2fd;
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid #bbdefb;
}

.countdown-blue.expiring {
  color: #f44336;
  background: #ffebee;
  border-color: #ffcdd2;
}

/* Error styling */
.errorlist {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
}

.errorlist li {
  color: var(--error-color);
  font-size: 14px;
  padding: 10px 16px;
  background-color: var(--error-light);
  border-radius: var(--radius-medium);
  margin-top: 8px;
  position: relative;
  padding-left: 42px;
  animation: errorAppear 0.4s ease-out;
  border: 1px solid rgba(255, 61, 0, 0.15);
}

.errorlist li:before {
  content: '!';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background-color: var(--error-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

/* Стиль для поля с ошибкой */
.field-with-error input {
  border-color: var(--error-color) !important;
  background-color: var(--error-light) !important;
}

@keyframes errorAppear {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Button styling */
.auth-button {
  width: 100%;
  padding: 16px;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: white;
  border: none;
  border-radius: var(--radius-medium);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
  letter-spacing: 0.5px;
  margin-top: 0px;
}

.auth-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 102, 255, 0.35);
}

.auth-button:active {
  transform: translateY(1px);
}

/* Auth footer */
.auth-footer {
  text-align: center;
  margin-top: 28px;
  color: var(--text-light);
  font-size: 15px;
}

.auth-link {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: var(--transition);
  display: inline-block;
  padding: 0 4px;
}

.auth-link:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.auth-link:hover {
  color: var(--primary-dark);
}

.auth-link:hover:after {
  width: 100%;
}

/* Password strength */
.password-strength {
  height: 6px;
  margin-top: 12px;
  border-radius: 3px;
  background-color: var(--gray-medium);
  overflow: hidden;
  position: relative;
}

.strength-meter {
  height: 100%;
  width: 0;
  transition: width 0.4s ease, background-color 0.4s ease;
  position: absolute;
  top: 0;
  left: 0;
}

/* Кастомный скроллбар для контейнера пароля */
.password-strength::-webkit-scrollbar {
  height: 6px;
}

.password-strength::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 3px;
}

.password-strength::-webkit-scrollbar-track {
  background-color: var(--gray-medium);
  border-radius: 3px;
}

/* Animation */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-card {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Background animation */
body:before {
  content: '';
  z-index: -1;
  animation: float 20s infinite ease-in-out;
}

@keyframes float {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-5px, -5px);
  }
  50% {
    transform: translate(5px, 5px);
  }
  75% {
    transform: translate(-3px, 3px);
  }
  100% {
    transform: translate(0, 0);
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .auth-card {
    padding: 32px 24px;
  }

  .auth-header h1 {
    font-size: 28px;
  }

  .form-row {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  html,
  body {
    padding: 0px;
  }

  .auth-container {
    padding: 0px;
    margin-bottom: 0;
  }

  .auth-card {
    padding: 28px 20px;
    border-radius: 0;
  }

  .auth-header h1 {
    font-size: 26px;
    padding-bottom: 10px;
  }

  .auth-card input[type='text'],
  .auth-card input[type='password'] {
    padding: 14px 18px;
    font-size: 15px;
  }

  .auth-button {
    padding: 15px;
    font-size: 16px;
  }

  .auth-footer {
    margin-top: 24px;
  }
}

@media (max-width: 360px) {
  .auth-card {
    padding: 24px 16px;
  }

  .auth-header h1 {
    font-size: 24px;
  }

  .auth-card input[type='text'],
  .auth-card input[type='password'] {
    padding: 13px 16px;
  }
}
.password-strength-container {
  margin-top: 8px;
}

.strength-label {
  font-size: 13px;
  font-weight: 600;
  margin-top: 5px;
  text-align: right;
  transition: color 0.3s ease;
}

.strength-weak {
  color: var(--error-color);
}
.strength-medium {
  color: var(--warning-color);
}
.strength-strong {
  color: var(--success-color);
}
/* Добавим в конец файла */
.forgot-password {
  text-align: right;
  margin-top: 12px;
}

.auth-forgot-link {
  color: var(--text-light);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
  position: relative;
  padding: 4px 0 2px 0;
}

.auth-forgot-link:hover {
  color: var(--primary-color);
}

.auth-forgot-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: var(--transition);
}

.auth-forgot-link:hover::after {
  width: 100%;
}

/* Verification Page Styles */
.verification-info {
  text-align: center;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--primary-light);
  border-radius: var(--radius-medium);
  animation: fadeIn 0.5s ease-out;
}

.verification-info strong {
  color: var(--primary-color);
}

.code-inputs {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 0;
}

.code-input {
  width: 50px;
  height: 60px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  border: 2px solid var(--gray-medium);
  border-radius: var(--radius-medium);
  background: var(--gray-light);
  transition: var(--transition);
}

.code-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
  background: white;
}

.timer-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--text-light);
}

.resend-link {
  color: var(--primary-color);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.resend-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.resend-link.disabled {
  color: var(--gray-dark);
  cursor: not-allowed;
  text-decoration: none;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-header-password-reset h1 {
  font-size: 28px;
}

@media (max-width: 480px) {
  .auth-header-password-reset h1 {
    font-size: 22px;
  }
}
@media (max-width: 768px) {
  .auth-header-password-reset h1 {
    font-size: 20px;
  }
}
/* Улучшение фона для мобильных */
@media (max-width: 480px) {
  body:before {
    animation: float 15s infinite ease-in-out;
  }
  
  body {
    background: linear-gradient(
      135deg,
      var(--bg-color) 0%,
      var(--primary-light) 150%
    );
  }
}