input,
textarea,
select,
input.form-control,
textarea.form-control,
select.form-control {
  border: none;  
  /* border-radius: 0.6rem !important; */
  background: var(--main-bg-color) !important;
  color: var(--main-text-color) !important;
  box-shadow: none !important;
}

div.input-icon, .profile-form-field {
  border: 2px solid var(--border-form-color) !important;  
  border-radius: 0.6rem;
}

input:focus,
textarea:focus,
select:focus,
input.form-control:focus,
textarea.form-control:focus,
select.form-control:focus {
  border-color: var(--border-form-color) !important;      
  box-shadow: none !important;
  outline: none !important;
}

/* edit_profile.html */
.edit-profile-bg {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 80vh;
  padding: 3rem 0;
}
.edit-profile-card {
  background: var(--secondary-bg-color);
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(30,30,40,0.18);
  max-width: 520px;
  width: 100%;
  padding: 2.5rem 2rem 2rem 2rem;
  margin: 0 auto;
  color: var(--main-text-color);
}
.edit-profile-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--main-text-color);
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}
.edit-profile-pic {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var( --border-form-color);
  background: #fff;
  transition: box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(60,60,60,0.07);
}

.edit-profile-label {
  color: var(--profile-segment-text);
  font-weight: 500;
  font-size: 1rem;
}

.form-label, .form-text {
  color: var(--profile-segment-text) !important;
}
input, textarea, select {
  background: var(--main-bg-color) !important;
  /* border: 1px solid var(--profile-accent) !important; */
  border-radius: 0.6rem !important;
}
input:focus, textarea:focus, select:focus {
  background: var(--secondary-bg-color) !important;
  border-color: var(--profile-btn-bg) !important;
  box-shadow: 0 0 0 2px var(--profile-btn-bg);
}
textarea[name="bio"] {
  min-height: 10em !important;
  height: 10em !important;
  resize: vertical;
}

/* edit_user.html */
.edit-profile-desc {
  color: var(--profile-segment-text);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}
.edit-profile-password-link {
  background: none;
  border: none;
  color: var(--profile-btn-bg);
  text-decoration: underline;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  margin: 0;
  transition: color 0.2s;
  display: inline;
}
.edit-profile-password-link:hover {
  text-decoration: underline;
}
.edit-profile-save-btn,
.edit-profile-save-btn.btn-sm {
  background: var(--profile-accent) !important;
  border: none;
  border-radius: 50rem !important;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  transition: background 0.3s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(60,60,60,0.07);
  padding: 0.32rem 1.2rem;
  min-width: 140px;
}
.edit-profile-save-btn.btn-sm {
  font-size: 0.95rem;
  padding: 0.32rem 1.2rem;
  min-width: 70px;
}
.edit-profile-save-btn:hover, .edit-profile-save-btn.btn-sm:hover {
  background: var(--profile-modal-hover) !important;
  box-shadow: 0 4px 16px rgba(60,60,60,0.13);
}
.modal-dialog.modal-sm {
  max-width: 350px;
}
.modal-content {
  border-radius: 1.2rem;
  background: var(--secondary-bg-color) !important;
  color: var(--main-text-color) !important;
}
.modal-header, .modal-footer {
  border: none !important;
  background: transparent !important;
}
.modal-footer .btn,
.modal-footer .edit-profile-save-btn.btn-sm {
  min-width: 70px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 50rem !important;
  padding: 0.32rem 1.2rem;
}
.btn-outline-secondary.rounded-pill {
  border-radius: 50rem !important;
  font-weight: 600;
  padding: 0.32rem 1.2rem;
}

/* login.html */
.login-bg {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 80vh;
  padding: 3rem 0;
}
.login-card {
  background: var(--secondary-bg-color);
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(30,30,40,0.18);
  max-width: 420px;
  width: 100%;
  padding: 2.5rem 2rem;
  backdrop-filter: blur(2px);
}
.login-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--main-text-color);
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}
.login-label {
  color: var(--profile-segment-text);
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}
.login-icon {
  position: absolute;
  left: 1rem;
  top: 1.7rem;
  height: 2.5rem;
  line-height: 2.5rem;
  text-align: center;
  color: var(--profile-btn-bg);
  font-size: 1.2rem;
  pointer-events: none;
  z-index: 2;
}

.input-icon {
  display: flex;
  flex-direction: row;

  input {
    padding-left: 0 !important;
  }
}

.input-icon::before {
  font-family: bootstrap-icons !important;
  width: 2.5rem;
  line-height: 2.5rem;
  text-align: center;
  color: var(--profile-btn-bg);
  font-size: 1.2rem;
  pointer-events: none;
  z-index: 2;
}

.add-user-icon::before {
  content: "\F4E1";
}

.add-email-icon::before {
  content: "\F32E";
}

.add-lock-icon::before {
  content: "\F44F";
}

/* register.html */
.register-bg {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 80vh;
  padding: 3rem 0;
}
.register-card {
  background: var(--secondary-bg-color);
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(30,30,40,0.18);
  max-width: 420px;
  width: 100%;
  padding: 2.5rem 2rem;
  backdrop-filter: blur(2px);
}
.register-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--main-text-color);
  letter-spacing: 0.01em;
}
.register-label {
  color: var(--profile-segment-text);
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}
.register-icon {
  position: absolute;
  left: 1rem;
  top: 1.7rem;
  height: 2.5rem;
  line-height: 2.5rem;
  text-align: center;
  color: var(--profile-btn-bg);
  font-size: 1.2rem;
  pointer-events: none;
  z-index: 2;
}

input.form-control, textarea.form-control, select.form-control {
  background: var(--main-bg-color) !important;
  border-radius: 0.6rem !important;
  padding: 0.6rem 1rem;
  height: 2.5rem !important;
  box-sizing: border-box;
  line-height: 1.5 !important;
}
input.form-control:focus, textarea.form-control:focus, select.form-control:focus {
  background: var(--secondary-bg-color) !important;
  box-shadow: 0 0 0 2px var(--profile-btn-bg);
}