/*
 * @copyright 2026 VRS Media GmbH & Co. KG
 */

/* Login — compiled from less/admin-custom.less */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }

body.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #2a3a4a;
  padding: 24px;
  overflow: hidden;
  position: relative;
}

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px) brightness(0.75) saturate(0.8);
  transform: scale(1.05);
  z-index: 0;
  display: none;
}

@media (min-width: 768px) {
  .bg-video { display: block; }
}

body.login-page::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(240, 244, 248, 0.30);
  z-index: 1;
}

.login-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  padding: 48px 40px 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12), 0 1px 4px rgba(0,0,0,0.06);
}

.login-card .logo-area {
  text-align: center;
  margin-bottom: 36px;
}

.login-card .logo-wordmark {
  font-size: 28px;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.4px;
  margin-bottom: 14px;
  display: block;
}

.login-card .logo-wordmark span { color: #F6A903; }

.login-card .login-title {
  font-size: 22px;
  font-weight: 500;
  color: #111827;
  letter-spacing: -0.4px;
  margin-bottom: 4px;
}

.login-card .login-subtitle {
  font-size: 13px;
  color: #6b7280;
}

.login-card .tab-bar {
  display: flex;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 28px;
}

.login-card .tab-btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}

.login-card .tab-btn.active {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.login-panels-wrap {
  display: grid;
}

.login-panels-wrap > .form-panel {
  grid-area: 1 / 1;
}

.login-card .form-panel { display: block; }
.login-card .form-panel.hidden {
  visibility: hidden;
  pointer-events: none;
}

.login-card .form-group { margin-bottom: 16px; }

.login-card .form-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 7px;
}

.login-card .form-input {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  color: #111827;
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}

.login-card .form-input::placeholder { color: #9ca3af; }

.login-card .form-input:focus {
  border-color: #F6A903;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(232,96,44,0.1);
}

.login-card .form-input.is-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}

.login-card .btn-primary-login {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: #111827;
  background: linear-gradient(135deg, #F6A903, #d4880a);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: opacity .2s, transform .1s, box-shadow .2s;
  letter-spacing: 0.2px;
}

.login-card .btn-primary-login:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232,96,44,0.3);
}

.login-card .btn-primary-login:active { transform: translateY(0); box-shadow: none; }

.login-card .btn-primary-login:focus-visible {
  outline: 2px solid #F6A903;
  outline-offset: 2px;
}

.login-card .btn-primary-login:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.login-card .btn-secondary-login {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: #374151;
  background: #f3f4f6;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background .2s;
}

.login-card .btn-secondary-login:hover { background: #e5e7eb; }

.login-card .btn-secondary-login:focus-visible,
.login-card .back-link:focus-visible {
  outline: 2px solid #F6A903;
  outline-offset: 2px;
}

.login-card .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  margin-bottom: 24px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
}

.login-card .back-link:hover { background: #f9fafb; }

.login-card .alert-info {
  display: flex;
  gap: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #1e40af;
  line-height: 1.5;
  margin-bottom: 20px;
}

.login-card .field-error {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #dc2626;
}

.login-card .token-expiry {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 16px;
}

.login-card .alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #dc2626;
  margin-bottom: 16px;
}

.login-card .alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #16a34a;
  margin-bottom: 16px;
}

.login-card .access-note {
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
  margin-top: 16px;
  line-height: 1.7;
}

.login-card .success-box {
  text-align: center;
  padding: 16px;
}

.login-card .success-box .success-icon { font-size: 32px; margin-bottom: 12px; color: #16a34a; }

.login-card .success-box p {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
}

.login-card .success-box strong { color: #111827; }

.login-footer {
  position: relative;
  z-index: 2;
  margin-top: 28px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  text-align: center;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

@media (max-width: 767px) {
  .login-footer { color: #9ca3af; text-shadow: none; }
  .login-card { padding: 36px 24px 28px; }
}

.toast-notification {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 48px);
  background: #16a34a;
  color: #ffffff;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  animation: toast-in .4s ease-out forwards, toast-out .4s ease-in forwards 6.2s;
}

.toast-notification .toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
  font-size: 18px;
}

.toast-notification .toast-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 4px;
  padding: 0;
  width: 20px;
  height: 20px;
  font-size: 14px;
  line-height: 1;
  color: #ffffff;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0.85;
}

.toast-notification .toast-close:hover { opacity: 1; }

.toast-notification .toast-close:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateX(-50%) translateY(0); }
  to { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

@media (max-width: 767px) {
  .toast-notification { bottom: 20px; }
}
