/* --- LOGIN-SPECIFIC STYLES ONLY --- */
.login-center-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100vw;
}

.container {
  background: #fff;
  color: #24292F;
  padding: 2.2em 2em;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(44,62,80,0.08);
  text-align: center;
  min-width: 320px;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chat-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5em;
}
.chat-intro .avatar img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin-bottom: 1em;
  background: #fff;
  padding: 6px;
}
.chat-intro .title {
  font-size: 1.5em;
  color: #0969DA;
  font-weight: bold;
  margin-bottom: 0.2em;
}
.chat-intro .subtitle {
  color: #57606A;
  font-size: 1em;
  margin-bottom: 0.5em;
  text-align: center;
  max-width: 320px;
}

form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Input fields */
input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 1em 1.1em;
  margin: 0.5em 0 1.5em 0;
  border-radius: 8px;
  font-size: 1.08em;
  background: #F6F8FA;
  color: #24292F;
  outline: none;
  border: 1px solid #e3e3e5;
  transition: border 0.2s, background 0.2s;
}
input:focus {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(9, 105, 218, 0.08);
}
input::placeholder {
  color: #57606A;
}

/* Input group for password + toggle */
.input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
  margin: 0.5em 0 1.5em 0;
}
.input-group input {
  border-radius: 8px 0 0 8px;
  margin: 0;
}
#togglePassword {
  background: #F6F8FA;
  border: 1px solid #e3e3e5;
  border-left: none;
  border-radius: 0 8px 8px 0;
  padding: 0 0.7em;
  cursor: pointer;
  color: #57606A;
  display: flex;
  align-items: center;
}
#togglePassword:hover {
  background: #e9ecef;
}
#togglePassword .material-icons {
  font-size: 22px;
}

/* Submit button */
button[type="submit"] {
  background: #10a37f;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.7em 1.5em;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(16,163,127,0.08);
  width: 100%;
}
button[type="submit"]:hover {
  background: #0e8c6e;
}

/* Error message */
.error {
  color: #ff6b6b;
  margin-bottom: 1em;
  font-size: 0.98em;
  width: 100%;
  text-align: left;
}

/* Mobile adjustments */
@media (max-width: 500px) {
  .container {
    width: 90vw;
    max-width: 90vw;
    padding: 1.2em 0.5em;
  }
  .chat-intro .subtitle {
    max-width: 90vw;
  }
  input,
  .input-group,
  button[type="submit"],
  .error {
    max-width: 80vw;
  }
}
