/* ============ ONEDAY · Login page ============ */
/* Шапка, футер, кнопки — из style.css */
/* Фон — из premium-bg.css */

.login-page {
  position: relative;
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

/* ============ КАРТОЧКА ВХОДА ============ */
.login-box {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(79,107,255,0.18);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 56px 44px;
  border-radius: 24px;
  width: 420px;
  max-width: 100%;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.15),
    0 0 60px rgba(79,107,255,0.1);
  z-index: 1;
  transition: background-color 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease;
}

[data-theme="dark"] .login-box {
  background: rgba(19,24,32,0.92);
  border-color: rgba(79,107,255,0.15);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.6),
    0 0 60px rgba(79,107,255,0.12);
}

/* ============ КРУПНЫЙ ЛОГОТИП ============ */
.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  height: 80px;
}

.login-brand .logo {
  transform: scale(1.8);
  transform-origin: center;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.login-sub {
  color: #8B92A0;
  font-size: 12px;
  text-align: center;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 40px;
  font-weight: 500;
}

/* ============ ПОЛЯ ВВОДА (обе темы) ============ */
.login-box label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #8B92A0;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.login-box input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 18px;
  transition: all 0.2s;
  box-sizing: border-box;
}

/* Светлая тема */
[data-theme="light"] .login-box input {
  background: #F4F5F8;
  border: 1px solid #E2E5EC;
  color: #14161C;
}
[data-theme="light"] .login-box input::placeholder {
  color: #9CA3AF;
}

/* Тёмная тема */
[data-theme="dark"] .login-box input {
  background: rgba(11,15,20,0.6);
  border: 1px solid rgba(79,107,255,0.15);
  color: #E5E7EB;
}
[data-theme="dark"] .login-box input::placeholder {
  color: #4A5160;
}

/* Фокус */
.login-box input:focus {
  outline: none;
  border-color: #4F6BFF;
  box-shadow:
    0 0 0 3px rgba(79,107,255,0.15),
    0 0 20px rgba(79,107,255,0.2);
}

/* ============ КНОПКА ============ */
.login-box .btn {
  background: linear-gradient(135deg, #4F6BFF 0%, #A855F7 100%);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  letter-spacing: 0.5px;
  width: 100%;
  box-shadow: 0 4px 20px rgba(79,107,255,0.3);
}
.login-box .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(79,107,255,0.5);
}
.login-box .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ============ ОШИБКА ============ */
.login-box .error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.4);
  color: #EF4444;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 18px;
  display: none;
}
[data-theme="dark"] .login-box .error {
  color: #FCA5A5;
}

/* ============ ССЫЛКА НА КАТАЛОГ ============ */
.login-box .back {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: #8B92A0;
}
.login-box .back a {
  color: #4F6BFF;
  text-decoration: none;
  font-weight: 600;
}
.login-box .back a:hover { text-decoration: underline; }

/* ============ ССЫЛКА «ЗАБЫЛИ ПАРОЛЬ» ============ */
.forgot-link {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 12px;
  color: #8B92A0;
  text-decoration: none;
  transition: color .2s;
}
.forgot-link:hover { color: #4F6BFF; text-decoration: underline; }