:root {
  --white: #ffffff;
  --title: #181d27;
  --subtitle: #535862;
  --grid-line: #e9eaeb;
  --card-border: rgba(117, 117, 117, 0.12);
  --card-text: #000000;
  --font-display: "LT Superior", "Inter", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  --font-text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--font-text);
  background: var(--white);
  color: var(--card-text);
  -webkit-font-smoothing: antialiased;
}

/* Split layout */
.login {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.panel,
.media {
  flex: 1 1 50%;
  min-width: 0;
}

/* ---------- Left panel ---------- */
.panel {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  overflow: hidden;
}

/* Decorative grid */
.grid-pattern {
  position: absolute;
  left: 48px;
  top: -208px;
  width: 768px;
  height: 768px;
  pointer-events: none;
  background-image: linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(
    circle at center,
    #000 0%,
    rgba(0, 0, 0, 0.55) 40%,
    transparent 72%
  );
  mask-image: radial-gradient(
    circle at center,
    #000 0%,
    rgba(0, 0, 0, 0.55) 40%,
    transparent 72%
  );
}

/* Centered form */
.container {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 32px;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  max-width: 360px;
}

.header {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.header .heading,
.header > .logo {
  /* spacing handled below */
}

/* logo + heading wrapper spacing (gap:40 between logo and heading block) */
.header {
  gap: 40px;
}

.logo {
  display: block;
  width: 111px;
  height: 32px;
}

.heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  line-height: 38px;
  color: var(--title);
}

.subtitle {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--subtitle);
}

/* Option cards */
.options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--card-text);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.option:hover {
  border-color: rgba(117, 117, 117, 0.3);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.option--disabled {
  opacity: 0.5;
}

.option-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.option-icon {
  width: 24px;
  height: 24px;
}

.option-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  color: var(--card-text);
}

.option-arrow {
  width: 16px;
  height: 16px;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  padding: 32px;
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: var(--subtitle);
}

/* ---------- Right media ---------- */
.media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: #000;
}

.media-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Responsive */
@media (max-width: 900px) {
  .login {
    flex-direction: column;
  }

  .media {
    min-height: 280px;
    order: -1;
  }

  .panel {
    min-height: 60vh;
  }
}
