/**
 * Login Page Styles
 * Styles specific to the login page
 */

/* ============================================================================
   LOGIN PAGE
   ============================================================================ */



.login-main {
  width: auto;

  .login-container {
    max-width: 420px;
    width: 100%;

    .login-card {
      background: white;
      border-radius: 12px;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
      padding: 2.5rem;

      .login-header {
        text-align: center;
        margin-bottom: 2rem;

        h1 {
          font-size: 1.875rem;
          color: #333;
          margin-bottom: 0.5rem;
        }

        p {
          color: #999;
          font-size: 0.95rem;
        }
      }
    }
  }
}


/* ============================================================================
   FORM ELEMENTS
   ============================================================================ */

.form-group {
  margin-bottom: 1.5rem;

  label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
  }

  input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;

    &:focus {
      outline: none;
      border-color: var(--primary-color);
      box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

    &::placeholder {
      color: #ccc;
    }

    &[type="text"] {
      letter-spacing: 0.15em;
      text-align: center;
      font-size: 1.25rem;
      font-weight: 500;
    }
  }
}

.step {
  display: none;

  &.active {
    display: block;
  }
}

#otp-form {
  text-align: center;
}

.otp-email {
  color: #333;
  font-weight: 600;
}

.info-text {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary-color);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-size: 0.9rem;
  transition: color 0.3s ease;

  &:hover {
    color: var(--secondary-color);
    text-decoration: underline;
  }
}

.message {
  padding: 0.875rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  text-align: center;
  display: none;
  animation: slideIn 0.3s ease;
  position: relative;
  z-index: 10;

  &.show {
    display: block;
  }

  &.error {
    background: #fee;
    color: #c00;
    border-left: 4px solid #c00;

    a {
      color: blue;
      text-decoration: underline;
    }
  }

  &.success {
    background: #efe;
    color: #060;
    border-left: 4px solid #060;
  }
}

.footer-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  font-size: 0.9rem;
  color: #999;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;

  a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;

    &:hover {
      color: var(--secondary-color);
      text-decoration: underline;
    }
  }
}

.divider {
  color: #ddd;
}