html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Forgot Password Page Styles */
.forgot-password-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 80vh;
    background-color: #f8f9fa;
    padding: 20px;
}

.forgot-password-header {
    text-align: center;
    margin-bottom: 15px;
}

.forgot-password-header h1 {
    font-size: 2rem;
    font-weight: bold;
    color: #1d659c;
}

.forgot-password-header p {
    font-size: 1rem;
    color: #6c757d;
}

.forgot-password-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.forgot-password-card .form-group {
    margin-bottom: 10px;
    text-align: left;
}

.forgot-password-card label {
    font-weight: 600;
    color: #333;
}

.forgot-password-card input {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ced4da;
    font-size: 1rem;
}

.forgot-password-btn {
    width: 100%;
    padding: 12px;
    background-color: #1d659c;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

    .forgot-password-btn:hover {
        background-color: #0b5ed7;
    }

/* Alert Messages */
.forgot-password-alert {
    margin-top: 20px;
    padding: 5px;
    border-radius: 5px;
    width: 100%;
    max-width: 500px;
    text-align: center;
    font-weight: bold;
}

.forgot-password-alert.error {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

.forgot-password-alert.success {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.spinner-border {
    width: 1rem;
    height: 1rem;
    margin-left: 8px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.x-small-text {
    font-size: 0.7rem !important;
}

/* Username input placeholder styling */
#Username::placeholder {
    color: rgba(108, 117, 125, 0.4);
    opacity: 0.5;
    font-weight: 300;
}

#Username::-webkit-input-placeholder {
    color: rgba(108, 117, 125, 0.4);
    opacity: 0.8;
    font-weight: 300;
}

#Username::-moz-placeholder {
    color: rgba(108, 117, 125, 0.4);
    opacity: 0.8;
    font-weight: 300;
}

#Username:-ms-input-placeholder {
    color: rgba(108, 117, 125, 0.4);
    opacity: 0.8;
    font-weight: 300;
}

/* QLD Logo and Header styling */
.forgot-password-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.qld-logo {
    height: 40px;
    width: auto;
}

.forgot-password-header h1 {
    margin: 0;
    text-align: left;
    font-size: 1.8rem;
}

/* Back to sign-in page link styling */
.forgot-password-back-link-container {
    text-align: left;
    margin: 15px 0;
    padding: 0px;
}

.forgot-password-back-link {
    color: #1d659c;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.forgot-password-back-link:hover {
    color: #0b5ed7;
    text-decoration: none;
}

.forgot-password-back-link:focus {
    outline: 2px solid #0056b3;
    outline-offset: 2px;
    color: #0b5ed7;
}

.forgot-password-back-link::before {
    content: "← ";
    margin-right: 4px;
    transition: margin-right 0.2s ease;
}

.forgot-password-back-link:hover::before {
    margin-right: 8px;
}
