*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --netflix-red: #e50914;
  --netflix-red-hover: #f40612;
  --panel-bg: rgba(0, 0, 0, 0.75);
  --input-bg: #333;
  --input-bg-focus: #454545;
  --text: #fff;
  --muted: #b3b3b3;
  --placeholder: #8c8c8c;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #000;
  overflow-x: hidden;
}

.gizli {
  display: none !important;
}

.bg {
  position: fixed;
  inset: -40px;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  transform: rotate(-8deg) scale(1.2);
  filter: brightness(0.45) saturate(0.9);
}

.bg span {
  border-radius: 2px;
  min-height: 180px;
}

.bg span:nth-child(6n + 1) { background-image: linear-gradient(135deg, #1a237e, #3949ab); }
.bg span:nth-child(6n + 2) { background-image: linear-gradient(135deg, #4a148c, #7b1fa2); }
.bg span:nth-child(6n + 3) { background-image: linear-gradient(135deg, #b71c1c, #e53935); }
.bg span:nth-child(6n + 4) { background-image: linear-gradient(135deg, #004d40, #00897b); }
.bg span:nth-child(6n + 5) { background-image: linear-gradient(135deg, #e65100, #fb8c00); }
.bg span:nth-child(6n) { background-image: linear-gradient(135deg, #263238, #546e7a); }

.bg::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  padding: 1.5rem 2.5rem 0;
}

.logo {
  display: inline-block;
  height: 52px;
  text-decoration: none;
}

.logo img {
  display: inline-block;
  height: 100px;
  text-decoration: none;
}

.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 4rem;
}

.login-panel {
  width: 100%;
  max-width: 450px;
  background: var(--panel-bg);
  border-radius: 4px;
  padding: 60px 68px 40px;
}

.login-panel h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.field {
  position: relative;
  margin-bottom: 16px;
}

.field input {
  width: 100%;
  height: 50px;
  padding: 16px 20px 0;
  border: none;
  border-radius: 4px;
  background: var(--input-bg);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  caret-color: var(--text);
}

.field input::placeholder {
  color: transparent;
}

.field label {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--placeholder);
  font-size: 1rem;
  pointer-events: none;
  transition: 0.15s ease;
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label {
  top: 12px;
  transform: none;
  font-size: 0.7rem;
}

.field input:focus {
  background: var(--input-bg-focus);
}

.btn-signin {
  width: 100%;
  height: 48px;
  margin-top: 24px;
  border: none;
  border-radius: 4px;
  background: var(--netflix-red);
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-signin:hover:not(:disabled) {
  background: var(--netflix-red-hover);
}

.btn-signin:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.sms-info {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 18px;
}

.sms-info strong {
  color: var(--text);
  display: inline-block;
  margin: 0 4px;
}

.otp-row {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.otp-digit {
  width: 48px;
  height: 54px;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  background: var(--input-bg);
  color: var(--text);
  outline: none;
}

.otp-digit:focus {
  background: var(--input-bg-focus);
  box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.45);
}

.sms-countdown {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--muted);
  min-height: 1.2em;
}

.sms-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  gap: 12px;
}

.link-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0;
}

.link-btn:hover {
  color: var(--text);
  text-decoration: underline;
}

.signup {
  margin-top: 48px;
  font-size: 0.95rem;
  color: #737373;
  text-align: center;
}

.login-error {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 4px;
  background: rgba(229, 9, 20, 0.18);
  color: #ffb3b8;
  font-size: 0.9rem;
}

@media (max-width: 740px) {
  .header {
    padding: 1.25rem 1.25rem 0;
  }

  .logo {
    height: 40px;
  }

  .login-panel {
    max-width: 100%;
    background: transparent;
    padding: 20px 5% 0;
  }

  .bg {
    display: none;
  }

  body {
    background: #000;
  }

  .otp-digit {
    width: 42px;
    height: 48px;
  }
}
