.reset-password-container {
    width: 100%;
    max-width: 500px;
    margin: 30px auto;
    padding: 30px;
    background-color: var(--secondary-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.reset-password-container h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

input {
    display: block;
    width: 100%;
    padding: 12px 15px;
    margin: 15px auto;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:disabled {
    background-color: rgba(255, 255, 255, 0.05);
    cursor: not-allowed;
    opacity: 0.7;
}

input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(56, 177, 237, 0.25);
}

.reset-btn {
    display: block;
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    padding: 12px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    margin-top: 20px;
    text-align: center;
}

.reset-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.reset-btn:disabled {
    background-color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

.error {
    color: var(--danger-color);
    font-size: 0.9em;
    margin: 5px 0 15px;
}

.success {
    color: var(--success-color);
    font-size: 0.9em;
    margin: 5px 0 15px;
}

/* Override browser autofill (Chrome) for the reset-password input */
input:-webkit-autofill,
input:-webkit-autofill:focus,
input:-webkit-autofill:hover {
    -webkit-box-shadow: 0 0 0px 1000px #fff inset !important;
    box-shadow: 0 0 0px 1000px #fff inset !important;
    -webkit-text-fill-color: #000 !important;
    background-color: #fff !important;
}

/* Ensure first-line inherits font (helps some Chromium behaviours) */
input:-webkit-autofill::first-line {
    font-family: inherit;
}

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    width: 100%;
    padding-right: 40px;
    /* Make space for the eye icon */
}

.toggle-password-btn {
    position: absolute;
    top: 50%;
    right: 15px;
    /* Aligned with input padding */
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.toggle-password-btn:hover {
    opacity: 1;
}

.toggle-password-btn svg {
    width: 100%;
    height: 100%;
    fill: var(--text-color, #333);
    /* Fallback color */
}