* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background: #0a0a0a;
  color: #f2f2f4;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* PANTALLA DIVIDIDA */
.screen {
  display: grid;
  grid-template-columns: 50% 50%;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

/* LOGO INSTAGRAM */
.instagram-logo {
  position: fixed;
  top: 30px;
  left: 30px;
  width: 44px;
  height: 44px;
  z-index: 1000;
}

/* LADO IZQUIERDO */
.showcase {
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  overflow: hidden;
  border-right: 1px solid #262626;
}

.headline {
  text-align: center;
  font-size: 44px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 30px;
  max-width: 100%;
}

.gradient-text {
  background: linear-gradient(90deg, #ff2d92, #ff6b35);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.artwork {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
}

/* LADO DERECHO */
.login-panel {
  background: #121212;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.form-wrap {
  width: 100%;
  max-width: 400px;
}

.back-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 35px;
  font-size: 16px;
  font-weight: 600;
}

.back {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.field {
  width: 100%;
  height: 50px;
  margin-bottom: 10px;
  padding: 0 15px;
  border: 1px solid #363636;
  border-radius: 12px;
  background: #1a1a1a;
  color: #fff;
  font-size: 14px;
  outline: none;
}

.field::placeholder {
  color: #888;
}

.field:focus {
  border-color: #555;
}

/* BOTÓN PRINCIPAL — estado apagado por defecto */
.primary {
  width: 100%;
  height: 45px;
  margin-top: 10px;
  border: none;
  border-radius: 25px;
  background: #1a3a5c;
  color: #6a7581;
  font-size: 15px;
  font-weight: 600;
  cursor: not-allowed;
  transition: background 0.15s ease, color 0.15s ease;
}

/* BOTÓN PRINCIPAL — estado activo (cuando ambos campos tienen texto) */
.primary.active {
  background: #1877f2;
  color: #fff;
  cursor: pointer;
}

.primary.active:hover {
  background: #166fe5;
}

.forgot {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.provider {
  width: 100%;
  height: 45px;
  margin-top: 50px;
  border: none;
  border-radius: 25px;
  background: #2d2d2d;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.provider:hover {
  background: #363636;
}

.fb-icon {
  width: 18px;
  height: 18px;
}

.create {
  width: 100%;
  height: 45px;
  margin-top: 12px;
  border: 1px solid #0095f6;
  border-radius: 25px;
  background: transparent;
  color: #0095f6;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.create:hover {
  background: rgba(0, 149, 246, 0.1);
}

.meta-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
  color: #888;
  font-size: 14px;
}

.meta-icon {
  width: 16px;
  height: 16px;
}

/* FOOTER */
footer {
  background: #0a0a0a;
  border-top: 1px solid #262626;
  padding: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.footer-links a {
  color: #888;
  text-decoration: none;
  font-size: 13px;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .screen {
    grid-template-columns: 1fr;
  }

  .showcase {
    display: none;
  }

  .login-panel {
    min-height: 100vh;
  }

  .instagram-logo {
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
  }
}