.container {
  display: flex;
  min-height: 100vh;

  font-family: "DM Sans", sans-serif;
  color: #181818;
}

.mainContent {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 3rem;
  background-color: #181818;
}

.loginSection {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.logoText {
  
  font-size: 35px;
  display: flex;
  align-items: center;
  letter-spacing: -0.5px;
  font-weight: 200;
}

.logoPower {
  color: #E5E7EB;
}

.logoOn {
  color: #F25843;
  font-weight: 700;
}

.logo img {
  height: 40px;
}

.loginBox {


  background-color: #181818;
  width: 25%;
  height: auto;

  margin-top: 5%;
  padding: 2rem;

  border-radius: 25px;
  border: 1px solid rgba(199, 197, 178, 0.15); /* washed-out color */
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 
              0 0 10px rgba(0, 0, 0, 0.1);
}

.title {
  font-family: "DM Sans", sans-serif;
  color: #E5E7EB;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  text-align: center;
}

.loginForm {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.floatingLabelInput {
  position: relative;
}

.label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #C7C5B2;
  font-size: 1rem;
  pointer-events: none;
  transition: all 0.3s ease;
  background-color: transparent;
  font-family: var(--font-family);
}

.focusedLabel {
  position: absolute;
  left: 12px;
  top: -8px;
  transform: translateY(0);
  color: #F25843;
  font-size: 0.85rem;
  pointer-events: none;
  transition: all 0.3s ease;
  background-color: #181818;
  padding: 0 4px;
  font-family: var(--font-family);
  font-weight: 500;
}

.input {
  width: 100%;
  height: 50px;
  padding: 12px 16px;
  border: 1px solid var(--color-gray-disabled);
  border-radius: 25px;

  font-size: 1rem;
  transition: all 0.2s ease;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-family);
}

.input:focus {
  outline: none;
  border-color: #F25843;
  box-shadow: 0 0 0 2px rgba(242, 88, 67, 0.1);
}

.input::placeholder {
  color: transparent;
}

/* Fix browser autocomplete styling */
.input:-webkit-autofill,
.input:-webkit-autofill:hover,
.input:-webkit-autofill:focus,
.input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #181818 inset !important;
  -webkit-text-fill-color: #E5E7EB !important;
  background-color: #181818 !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Ensure label background matches when autofilled */
.input:-webkit-autofill + .label,
.input:-webkit-autofill + .focusedLabel {
  background-color: #181818 !important;
}

.button {
  width: 100%;
  height: 50px;
  padding: 12px 20px;
  border-radius: 25px;

  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-align: center;
}

.loginButton {
  background-color: #F25843;
  color: #E5E7EB;
}

.loginButton:hover {
  background-color: var(--color-secondary-hover);
}

.registerLink {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.registerLink span {
  color: #E5E7EB;
  font-size: 0.8rem;
}

.textButton {
  background: none;
  border: none;
  color: var(--color-secondary);
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  font-size: 0.9rem;
  font-family: var(--font-family);
}

.textButton:hover {
  text-decoration: underline;
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.error {
  color: var(--color-secondary);
  background-color: var(--color-secondary-disabled);
  border: 1px solid var(--color-secondary);
  border-radius: 25px;
  padding: 12px;
  font-size: 0.9rem;
  text-align: center;
  font-family: var(--font-family);
  margin-bottom: 10px;
}

.success {
  color: #10b981;
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid #10b981;
  border-radius: 25px;
  padding: 12px;
  font-size: 0.9rem;
  text-align: center;
  font-family: var(--font-family);
  margin-bottom: 10px;
}

.infoMessage {
  background-color: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  padding: 12px;
  font-size: 0.85rem;
  color: #93c5fd;
  text-align: center;
  font-family: var(--font-family);
}

.infoMessage p {
  margin: 0;
}
