/* Базові стилі для сторінки авторизації звичайних користувачів */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #7c3aed 0, #020617 45%, #000 100%);
  color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.login-page-root {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.login-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top, rgba(168, 85, 247, 0.15), transparent 60%),
    radial-gradient(circle at bottom, rgba(147, 51, 234, 0.25), transparent 60%);
  filter: blur(40px);
  opacity: 0.9;
}

.login-card-wrapper {
  position: relative;
  max-width: 380px;
  width: 100%;
  perspective: 1200px;
  z-index: 1;
}

.login-card {
  position: relative;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(17, 24, 39, 0.95));
  border-radius: 20px;
  padding: 28px 24px 24px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow:
    0 18px 60px rgba(15, 23, 42, 0.8),
    0 0 30px rgba(129, 140, 248, 0.25);
  transform-style: preserve-3d;
  transition:
    transform 0.4s ease-out,
    box-shadow 0.4s ease-out,
    border-color 0.3s ease-out;
}

.login-card:hover {
  box-shadow:
    0 24px 80px rgba(15, 23, 42, 0.9),
    0 0 40px rgba(129, 140, 248, 0.35);
  border-color: rgba(196, 181, 253, 0.9);
}

.login-header {
  text-align: center;
  margin-bottom: 20px;
}

.login-logo {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  background: radial-gradient(circle at top left, rgba(248, 250, 252, 0.4), transparent 55%);
}

.login-logo span {
  font-weight: 700;
  font-size: 20px;
  background: linear-gradient(to bottom, #f9fafb, #d1d5db);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.login-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(to bottom, #f9fafb, #e5e7eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 4px;
}

.login-subtitle {
  font-size: 12px;
  color: #9ca3af;
  margin: 0;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-label {
  font-size: 12px;
  color: #e5e7eb;
}

.login-input-wrapper {
  position: relative;
}

.login-input-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #9ca3af;
  pointer-events: none;
}

.login-input {
  width: 100%;
  padding: 9px 10px 9px 30px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background-color: rgba(15, 23, 42, 0.85);
  color: #f9fafb;
  font-size: 14px;
  outline: none;
  transition:
    border-color 0.2s ease-out,
    box-shadow 0.2s ease-out,
    background-color 0.2s ease-out;
}

.login-input::placeholder {
  color: #6b7280;
}

.login-input:focus {
  border-color: rgba(196, 181, 253, 0.95);
  box-shadow:
    0 0 0 1px rgba(196, 181, 253, 0.9),
    0 0 20px rgba(129, 140, 248, 0.6);
  background-color: rgba(15, 23, 42, 1);
}

.login-toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 0;
  font-size: 12px;
}

.login-toggle-password:hover {
  color: #e5e7eb;
}

.login-remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}

.login-remember {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #9ca3af;
}

.login-remember input[type="checkbox"] {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background-color: rgba(15, 23, 42, 0.9);
}

.login-forgot {
  font-size: 12px;
}

.login-forgot a {
  color: #c4b5fd;
  text-decoration: none;
}

.login-forgot a:hover {
  text-decoration: underline;
}

.login-button {
  margin-top: 10px;
  width: 100%;
  border-radius: 999px;
  border: none;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: linear-gradient(to right, #a855f7, #6366f1);
  color: #f9fafb;
  cursor: pointer;
  box-shadow:
    0 12px 35px rgba(79, 70, 229, 0.7),
    0 0 25px rgba(196, 181, 253, 0.8);
  transition:
    transform 0.15s ease-out,
    box-shadow 0.15s ease-out,
    filter 0.15s ease-out;
}

.login-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.login-button:active {
  transform: translateY(0);
  box-shadow:
    0 6px 18px rgba(79, 70, 229, 0.7),
    0 0 15px rgba(196, 181, 253, 0.8);
}

.login-button[disabled] {
  opacity: 0.7;
  cursor: default;
  box-shadow: none;
}

.login-status {
  margin-top: 10px;
  font-size: 12px;
  min-height: 18px;
}

.login-status--info {
  color: #93c5fd;
}

.login-status--error {
  color: #fecaca;
}

.login-status--success {
  color: #bbf7d0;
}

.login-footer {
  margin-top: 14px;
  text-align: center;
  font-size: 11px;
  color: #6b7280;
}

.login-footer a {
  color: #c4b5fd;
  text-decoration: none;
}

.login-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .login-card {
    padding: 22px 18px 18px;
    border-radius: 18px;
  }

  .login-title {
    font-size: 18px;
  }
}


