/* TrumpBetrayedMe.com Forgot Password CSS */

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Main Section */
.forgot-pass-main {
    text-align: center;
    padding: 2rem 1rem;
	flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.forgot-pass-main h2 {
    font-size: 34px;
}

.forgot-form {
    min-width: 600px;
    max-width: 600px;
    background: #f0f0f0;
    margin: 30px auto 0 auto;
    padding: 30px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.forgot-form label {
    font-weight: bold;
    font-size: 1rem;
}

.forgot-form input {
    padding: 0.7rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
	.main h2 {
    	font-size: 36px;
    	line-height: 1;
	}
	
	.login-form {
    min-width: 450px;
    max-width: 450px;
	}
}

/* ****** form specific settings *******/

/* Message Box */
.tbm-msg {
  margin-top: 1rem;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border-radius: 5px;
  display: none;
}

.tbm-msg.success {
  background-color: #d8f8d8;
  color: #205c20;
  border: 1px solid #b6e6b6;
}

.tbm-msg.error {
  background-color: #fddcdc;
  color: #842424;
  border: 1px solid #f5b7b7;
}

/* Submit Button Spinner */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button .spinner {
  display: none;
  margin-left: 8px;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-top: 2px solid #888;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Show spinner when loading */
.button.loading .spinner {
  display: inline-block;
}

/* Optional: dim button while loading */
.button:disabled,
.button.loading {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Spinner Animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== Responsive Fixes for Forgot Password Page ===== */
@media (max-width: 768px) {
  .forgot-pass-main h2 {
    font-size: 28px;
    line-height: 1.2;
  }

  .forgot-form {
    width: 100%;
    max-width: 400px;
    min-width: auto;
    padding: 20px;
    margin: 20px auto;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .forgot-pass-main {
    padding: 1.5rem 1rem;
  }

  .forgot-pass-main h2 {
    font-size: 24px;
  }

  .forgot-form {
    width: 100%;
    max-width: 320px;
    padding: 18px;
    margin: 10px auto;
  }

  .forgot-form input {
    font-size: 0.95rem;
    padding: 0.6rem;
  }
}
