* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  }

:root {
--font: white;
--otherfont: black;
--link: grey;
--background: #f1f1f1;
--bg: green;
--blue: #0b50b8;
--green: #16a34a;
--light-green: #1ef199;
--text-dark: #172033;
--text-grey: #6b7280;
--border: #d5d5d5;
--danger: #dc2626;
--success: #16a34a;
}

body {
min-height: 100vh;
font-family: Arial, sans-serif;
background: linear-gradient(
135deg,
#0b50b8 0%,
#16a34a 55%,
#1ef199 100%
);
color: var(--text-dark);
}

/* Password reset section */

.forget {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 30px 20px;
}

.container {
width: 100%;
max-width: 500px;
}

.row {
width: 100%;
padding: 40px 35px;
background: #ffffff;
border-radius: 18px;
box-shadow:
0 15px 45px rgba(0, 0, 0, 0.18);
}

/* Heading */

.row h1 {
margin-bottom: 10px;
color: var(--text-dark);
font-size: 30px;
font-weight: 700;
text-align: center;
}

.row > p {
margin-bottom: 28px;
color: var(--text-grey);
font-size: 15px;
line-height: 1.5;
text-align: center;
}

/* Reset forms */

.reset-form {
width: 100%;
display: flex;
flex-direction: column;
}

/* Hide password form until reset code is requested */

#newPasswordForm {
display: none;
margin-top: 22px;
}

#password-fields {
display: none;
width: 100%;
flex-direction: column;
}

/* Inputs */

.reset-form input {
width: 100%;
height: 50px;
padding: 0 15px;
margin-bottom: 14px;
border: 1px solid var(--border);
border-radius: 10px;
background: #ffffff;
color: var(--text-dark);
font-size: 15px;
outline: none;
transition:
border-color 0.2s ease,
box-shadow 0.2s ease;
}

.reset-form input::placeholder {
color: #9ca3af;
}

.reset-form input:focus {
border-color: var(--blue);
box-shadow:
0 0 0 3px rgba(11, 80, 184, 0.1);
}

/* Reset code */

#token {
text-align: center;
letter-spacing: 5px;
font-size: 18px;
font-weight: 600;
}

#token::placeholder {
letter-spacing: normal;
font-size: 15px;
font-weight: 400;
}

/* Countdown */

#countdown-timer {
min-height: 20px;
margin-bottom: 12px;
color: #f59e0b;
font-size: 13px;
font-weight: 600;
line-height: 1.4;
text-align: center;
}

/* Buttons */

.reset-form button {
width: 100%;
height: 50px;
border: none;
border-radius: 10px;
background: var(--blue);
color: #ffffff;
font-size: 15px;
font-weight: 600;
cursor: pointer;
transition:
background 0.2s ease,
transform 0.2s ease,
opacity 0.2s ease;
}

.reset-form button:hover {
background: var(--green);
transform: translateY(-1px);
}

.reset-form button:active {
transform: translateY(0);
}

.reset-form button:disabled {
opacity: 0.55;
cursor: not-allowed;
transform: none;
}

/* Back button */

.btns {
display: flex;
justify-content: center;
align-items: center;
margin-top: 25px;
}

.btns p {
margin: 0;
}

.btns a {
display: inline-block;
padding: 9px 20px;
border-radius: 8px;
color: var(--blue);
font-size: 14px;
font-weight: 600;
text-decoration: none;
transition:
background 0.2s ease,
color 0.2s ease;
}

.btns a:hover {
background: var(--blue);
color: #ffffff;
}

/* Response message */

#forget-password-response-message {
min-height: 20px;
margin-top: 15px;
color: var(--text-grey);
font-size: 13px;
line-height: 1.4;
text-align: center;
}

/* Toast panels */

.message-panels {
position: fixed;
top: 25px;
right: 25px;
z-index: 10000;
display: flex;
flex-direction: column;
gap: 10px;
pointer-events: none;
}

.message-panels p {
display: none;
min-width: 280px;
max-width: 380px;
padding: 14px 18px;
border-radius: 10px;
background: #ffffff;
box-shadow:
0 10px 30px rgba(0, 0, 0, 0.18);
font-size: 14px;
line-height: 1.4;
}

.message-panels p.show-toast {
display: block;
}

.message-panels .success {
color: var(--success);
border-left: 4px solid var(--success);
}

.message-panels .error {
color: var(--danger);
border-left: 4px solid var(--danger);
}

/* Loading overlay */

.loading-overlay {
position: fixed;
inset: 0;
z-index: 9999;
display: flex;
align-items: center;
justify-content: center;
background: rgba(0, 0, 0, 0.6);
opacity: 0;
visibility: hidden;
pointer-events: none;
transition:
opacity 0.2s ease,
visibility 0.2s ease;
}

.loading-overlay.show {
opacity: 1;
visibility: visible;
pointer-events: all;
}

/* Spinner box */

.spinner-box {
min-width: 190px;
padding: 25px 30px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 15px;
background: #ffffff;
border-radius: 14px;
box-shadow:
0 10px 35px rgba(0, 0, 0, 0.2);
}

.spinner-box p {
margin: 0;
color: var(--text-dark);
font-size: 14px;
font-weight: 600;
text-align: center;
}

/* Spinner */

.circle-spinner {
width: 38px;
height: 38px;
border: 4px solid #e5e7eb;
border-top-color: var(--blue);
border-right-color: var(--green);
border-radius: 50%;
animation: spin 0.8s linear infinite;
}

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

/* Mobile */

@media (max-width: 600px) {
.forget {
    padding: 20px 15px;
}

.row {
    padding: 30px 22px;
    border-radius: 15px;
}

.row h1 {
    font-size: 26px;
}

.row > p {
    font-size: 14px;
}

.message-panels {
    top: 15px;
    right: 15px;
    left: 15px;
}

.message-panels p {
    min-width: 0;
    max-width: none;
}

}

@media (max-width: 380px) {
.row {
    padding: 25px 18px;
}

.row h1 {
    font-size: 24px;
}

.reset-form input {
    height: 48px;
}

.reset-form button {
    height: 48px;
}

#token {
    letter-spacing: 4px;
}
}
