@use "shared/ui-components";

:root {
  --shadow-card: 0 20px 50px rgba(22, 34, 58, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Roboto", "Segoe UI", sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  width: 460px;
  height: 460px;
  border-radius: 999px;
  filter: blur(28px);
  z-index: 0;
  opacity: 0.45;
  pointer-events: none;
}

.bg-orb-left {
  top: -200px;
  left: -180px;
  background: radial-gradient(circle, rgba(102, 144, 244, 0.48) 0%, rgba(102, 144, 244, 0) 70%);
}

.bg-orb-right {
  right: -200px;
  bottom: -220px;
  background: radial-gradient(circle, rgba(30, 42, 58, 0.36) 0%, rgba(30, 42, 58, 0) 70%);
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  position: relative;
  z-index: 1;
}

.login-card {
  width: 100%;
  max-width: 430px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 34px 30px 28px;
  animation: card-enter 420ms ease-out;
}

.login-header {
  margin-bottom: 24px;
}

.login-badge {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #d9e2ff;
  background: #eef2ff;
  color: #3f5faf;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

h1 {
  margin: 0;
  color: var(--c-text-strong);
  font-size: clamp(1.6rem, 2.5vw, 1.9rem);
  line-height: 1.15;
  font-weight: 700;
}

.login-subtitle {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--c-muted);
}

.login-alert {
  margin-bottom: 18px;
}

.login-alert-placeholder {
  opacity: 0.56;
}

.login-form {
  display: grid;
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.field-label {
  color: var(--c-text-strong);
  font-size: 13px;
  font-weight: 600;
}

.login-form .form-control {
  min-height: 46px;
  padding: 0 14px;
  border-width: 2px;
}

.login-form .form-control::placeholder {
  color: #cbd5e0;
}

.login-submit {
  margin-top: 2px;
  font-size: 15px;
  min-height: 48px;
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .login-page {
    padding: 18px 14px;
  }

  .login-card {
    padding: 24px 20px 20px;
  }

  h1 {
    font-size: 1.55rem;
  }
}
