@import url('theme.css');

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--gradient-page-bg);
  background-attachment: fixed;
  min-height: 100vh;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.wrap {
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 1024px) {
  .wrap {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

.left {
  display: none;
  flex-direction: column;
  gap: 22px;
  padding-right: 24px;
}

@media (min-width: 1024px) {
  .left {
    display: flex;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-primary);
  background: rgba(255, 122, 0, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  width: fit-content;
}

.eyebrow svg {
  color: var(--brand-accent);
}

.left h2 {
  font-size: 2.4rem;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--brand-primary);
}

.left h2 span {
  color: var(--brand-accent);
}

.left p {
  color: var(--color-text-secondary);
  font-size: 16px;
  max-width: 440px;
  margin: 0;
  line-height: 1.6;
}

.illus {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(13, 27, 76, 0.06), rgba(255, 122, 0, 0.08));
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.illus::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 122, 0, 0.2), transparent 45%),
    radial-gradient(circle at 70% 70%, rgba(13, 27, 76, 0.12), transparent 45%);
}

.illus img {
  position: relative;
  z-index: 1;
  max-width: 75%;
  max-height: 75%;
  object-fit: contain;
}

.card-wrap {
  display: flex;
  justify-content: center;
}

.card {
  width: 100%;
  max-width: 460px;
  background: var(--color-bg-elevated);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand .logo {
  width: 100%;
  max-width: 100%;
}

.brand .logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.card h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand-primary);
}

.card .sub {
  margin: 4px 0 0;
  color: var(--color-text-secondary);
  font-size: 14px;
}

form {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  display: block;
  margin-bottom: 8px;
}

.field {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  background: #fff;
  transition: var(--transition);
}

.field:focus-within {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.12);
}

.field svg {
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.field input {
  border: 0;
  outline: 0;
  flex: 1;
  font-family: inherit;
  font-size: 14px;
  color: var(--color-text);
  background: transparent;
  padding: 6px 0;
}

.roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.role {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.role.active {
  border-color: var(--brand-accent);
  background: rgba(255, 122, 0, 0.08);
  color: var(--brand-accent);
  box-shadow: 0 0 0 2px rgba(255, 122, 0, 0.15);
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.remember input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-accent);
}

.forgot {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-accent);
  text-decoration: none;
}

.btn-submit {
  width: 100%;
  padding: 13px 16px;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--color-text-on-accent);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  background: var(--gradient-accent);
  font-family: inherit;
  box-shadow: var(--shadow-accent);
  transition: var(--transition);
}

.btn-submit:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.copyright {
  margin-top: 28px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 12px;
}

.error {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--color-danger-bg);
  color: var(--color-danger);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #fecaca;
}

.error.show {
  display: block;
}
