@font-face {
  font-family: 'Now';
  src: url('../fonts/now.bold.otf') format('opentype'),
       url('../fonts/now.bold.otf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Now';
  src: url('../fonts/now.bold.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}


:root {
  --netflex-blue: #1c294c;
  --netflex-orange: #ff6b35;
  --netflex-dark-blue: #1c294c;
  --netflex-deep-blue: #0f3460;
  --netflex-gradient-start: #1a1a2e;
  --netflex-gradient-end: #16213e;
  --netflex-accent: #ff6b35;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"] {
  font-size: 16px;
}

html {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

button, input, label {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

input[type="text"],
input[type="password"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #f3f4f6;
  color: #1f2937;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 2000px;
  margin: 0 auto;
  padding: 0 1rem;
}

header {
  background: linear-gradient(135deg, var(--netflex-gradient-start) 0%, var(--netflex-dark-blue) 50%, var(--netflex-deep-blue) 100%);
  padding: 0.75rem 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  width: 100%;
  top: 0;
  z-index: 10;
}

header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

header img {
  height: 3rem;
  width: auto;
  margin-top: 0.5rem;
  margin-left: 0;
}

header .text-center {
  text-align: center;
}

header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0;
  color: white;
  font-family: 'Now', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

header p {
  font-size: 1rem;
  opacity: 0.9;
  color: white;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

main {
  padding-top: 32px;
  padding-bottom: 48px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

main .container {
  padding: 0 0.5rem;
}

.card-container {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  position: relative;
  perspective: 1000px;
  height: 400px;
}

.card {
  width: 100%;
  background-color: white;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 1.5rem;
  position: absolute;
  top: 0;
  left: 0;
  backface-visibility: hidden;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.login-card.active {
  transform: rotateY(0deg);
  opacity: 1;
  z-index: 2;
}

.login-card.inactive {
  transform: rotateY(-180deg);
  opacity: 0;
  z-index: 1;
}

.recovery-card.active {
  transform: rotateY(0deg);
  opacity: 1;
  z-index: 2;
}

.recovery-card.inactive {
  transform: rotateY(180deg);
  opacity: 0;
  z-index: 1;
}

@media (max-height: 600px) {
  .card-container {
    height: 350px;
  }

  .card.active {
    transform: rotateY(0deg);
  }

  .card.active:hover {
    transform: rotateY(0deg);
  }

}

.card h2 {
  font-family: 'Now', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--netflex-blue);
  letter-spacing: -0.025em;
}

#loginForm,
#recoveryForm {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#loginForm > div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.25rem;
}

input[type="text"],
input[type="password"],
input[type="email"] {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 1rem;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: white;
  -webkit-tap-highlight-color: transparent;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
  outline: none;
  border-color: var(--netflex-blue);
  box-shadow: 0 0 0 2px rgba(1, 53, 221, 0.2);
}

input[type="text"].error,
input[type="password"].error,
input[type="email"].error {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.terms-container {
  margin: 0.5rem 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.875rem;
  color: #374151;
  gap: 0.5rem;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  height: 18px;
  width: 18px;
  background-color: white;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  position: relative;
  transition: all 0.2s ease-in-out;
  flex-shrink: 0;
}

.checkbox-label:hover .checkmark {
  border-color: var(--netflex-blue);
}

.checkbox-label input:checked ~ .checkmark {
  background-color: var(--netflex-blue);
  border-color: var(--netflex-blue);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label input:checked ~ .checkmark:after {
  display: block;
}

input::placeholder {
  color: #9ca3af;
  opacity: 1;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px white inset;
  -webkit-text-fill-color: #1f2937;
  transition: background-color 5000s ease-in-out 0s;
}

button[type="submit"] {
  width: 100%;
  padding: 0.5rem 0;
  border-radius: 0.375rem;
  background-color: var(--netflex-orange);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease-in-out;
  position: relative;
  font-weight: 600;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  height: 45px;
}

button[type="submit"]:hover {
  opacity: 0.9;
  background-color: white;
  color: var(--netflex-orange);
  border: 1px solid var(--netflex-orange);
}

button[type="submit"]:active {
  transform: translateY(0);
  background-color: #e55a00;
}

button[type="submit"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.3);
}

button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.fas {
  height: 0.8rem;
  width: 1.25rem;
  margin-right: 0.5rem;
}

#login-message {
  text-align: center;
  color: #f87171;
  font-weight: 600;
  margin-top: 0.5rem;
  min-height: 20px;
  transition: all 0.3s ease-in-out;
}

.text-xs {
  font-size: 0.75rem;
  text-align: center;
  margin-top: 1rem;
  color: #6b7280;
}

a {
  color: rgb(0, 60, 189);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a:hover {
  text-decoration: underline;
  color: var(--netflex-blue);
}

footer {
  background: linear-gradient(135deg, var(--netflex-deep-blue) 0%, var(--netflex-dark-blue) 50%, var(--netflex-gradient-start) 100%);
  color: white;
  padding: 1.5rem 1rem;
  margin-top: auto;
  width: 100%;
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.1);
}

footer .container {
  text-align: center;
}

footer p:first-child {
  font-size: 1.125rem;
  font-weight: 600;
}

footer p:last-child {
  font-size: 0.875rem;
  margin-top: 0.5rem;
  opacity: 0.8;
}

.loading {
  opacity: 0.7;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }

  100% { transform: rotate(360deg); }

}

@media (max-width: 767px) {
  .container {
    padding: 0 0.75rem;
  }

  header {
    padding: 0.5rem 0.75rem;
  }

  header .container {
    flex-direction: column;
    gap: 0.75rem;
  }

  header img {
    height: 2.5rem;
    margin-top: 0.25rem;
    margin-left: 0;
  }

  header h1 {
    display: none;
  }

  header p {
    font-size: 0.8rem;
    line-height: 1.3;
    margin-top: 0.25rem;
  }

  main {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  main .container {
    padding: 0 0.5rem;
  }

  .card-container {
    height: 380px;
  }

  .card {
    padding: 1.25rem;
    border-radius: 0.75rem;
    max-width: 100%;
  }

  .checkbox-label {
    font-size: 0.8rem;
  }

  .checkmark {
    height: 16px;
    width: 16px;
  }

  .card h2 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
  }

  #loginForm {
    gap: 0.875rem;
  }

  #loginForm > div {
    gap: 0.375rem;
  }

  label {
    font-size: 0.8rem;
    margin-bottom: 0.375rem;
  }

  input[type="text"],
  input[type="password"] {
    padding: 0.75rem 0.625rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    min-height: 2.75rem;
  }

  button[type="submit"] {
    padding: 0.75rem 0;
    border-radius: 0.5rem;
    min-height: 2.75rem;
    font-size: 1rem;
    font-weight: 600;
  }

  button[type="submit"]:hover {
    opacity: 0.9;
    background-color: white;
    color: var(--netflex-orange);
    border: 1px solid var(--netflex-orange);
  }

  .fas {
    height: 1.125rem;
    width: 1.125rem;
    margin-right: 0.375rem;
  }

  #login-message {
    font-size: 0.8rem;
    margin-top: 0.375rem;
    min-height: 1.25rem;
  }

  .text-xs {
    font-size: 0.7rem;
    margin-top: 0.75rem;
    line-height: 1.4;
  }

  footer {
    padding: 1rem 0.75rem;
  }

  footer p:first-child {
    display: none;
  }

  footer p:last-child {
    font-size: 0.75rem;
    margin-top: 0.375rem;
  }

}

@media (min-width: 768px) and (max-width: 1023px) {
  .container {
    padding: 0 1rem;
  }

  header {
    padding: 0.625rem 1rem;
  }

  header img {
    height: 3rem;
  }

  header h1 {
    font-size: 1.5rem;
  }

  header p {
    font-size: 0.9rem;
  }

  .card {
    padding: 2rem;
    max-width: 24rem;
  }

  .card h2 {
    font-size: 1.75rem;
    margin-bottom: 1.75rem;
  }

  #loginForm {
    gap: 1.25rem;
  }

  input[type="text"],
  input[type="password"] {
    padding: 0.625rem 0.75rem;
    min-height: 2.5rem;
  }

  button[type="submit"] {
    padding: 0.625rem 0;
    min-height: 2.5rem;
  }

}

@media (min-width: 1024px) and (max-width: 1279px) {
  .card {
    max-width: 26rem;
    padding: 2.25rem;
  }

  .card h2 {
    font-size: 1.875rem;
    margin-bottom: 2rem;
  }

  #loginForm {
    gap: 1.5rem;
  }

}

@media (min-width: 1280px) {
  .container {
    max-width: 2000px;
  }

  header .container {
    flex-direction: row;
  }

  header img {
    height: 3.5rem;
    margin-top: 0;
    margin-left: 1.5rem;
  }

  header .text-center {
    text-align: left;
  }

  header h1 {
    font-size: 1.875rem;
  }

  header p {
    font-size: 1.125rem;
  }

  main .container {
    padding: 0 1rem;
  }

  .card {
    padding: 2.5rem;
    max-width: 28rem;
  }

  .card h2 {
    font-size: 1.875rem;
    margin-bottom: 2rem;
  }

  #loginForm {
    gap: 1.5rem;
  }

  .text-xs {
    font-size: 0.875rem;
  }

}

@media (max-width: 767px) and (orientation: landscape) {
  main {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .card {
    margin: 0.25rem;
    padding: 1rem;
  }

  .card h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  #loginForm {
    gap: 0.75rem;
  }

  input[type="text"],
  input[type="password"] {
    padding: 0.5rem 0.625rem;
    min-height: 2.5rem;
  }

  button[type="submit"] {
    padding: 0.5rem 0;
    min-height: 2.5rem;
  }

}

@media (max-width: 375px) {
  .container {
    padding: 0 0.5rem;
  }

  header {
    padding: 0.375rem 0.5rem;
  }

  header img {
    height: 2rem;
  }

  header h1 {
    display: none;
  }

  header p {
    font-size: 0.75rem;
  }

  .card-container {
    height: 350px;
  }

  .card {
    margin: 0.25rem;
    padding: 1rem;
    border-radius: 0.5rem;
  }

  .card h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  #loginForm {
    gap: 0.75rem;
  }

  label {
    font-size: 0.75rem;
  }

  input[type="text"],
  input[type="password"] {
    padding: 0.625rem 0.5rem;
    font-size: 0.9rem;
    min-height: 2.5rem;
  }

  button[type="submit"] {
    padding: 0.625rem 0;
    font-size: 0.9rem;
    min-height: 2.5rem;
  }

  .fas {
    height: 1rem;
    width: 1rem;
    margin-right: 0.25rem;
  }

  .text-xs {
    font-size: 0.65rem;
  }

}

@media (hover: none) and (pointer: coarse) {
  input[type="text"],
  input[type="password"] {
    min-height: 3rem;
  }

  button[type="submit"] {
    min-height: 3rem;
  }

  #loginForm {
    gap: 1rem;
  }

  #loginForm > div {
    gap: 0.5rem;
  }

  label {
    margin-bottom: 0.5rem;
  }

}

.input-olho-group {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}
.input-olho-group input {
  width: 100%;
  padding-right: 38px;
}
.olho-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #6366f1;
  font-size: 1.1rem;
  padding: 0 4px;
  outline: none;
}
.olho-btn:focus {
  outline: none;
}

