/* 全頁背景浮水印 */
body::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  width: 700px;
  height: 700px;
  transform: translate(-50%, -50%);
  background: url("/static/images/OH-logo-w.png") no-repeat center;
  background-size: contain;
  opacity: 0.1;   /* 透明度可調整 */
  pointer-events: none;
  z-index: 0;
}

body.no-scroll {
  overflow: hidden;
}

/* 全頁背景置中 */
.changepwd-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to right, #74ebd5, #9face6);
    padding: 20px;
}

/* 外層卡片 */
.login-wrapper {
    display: flex;
    width: 900px;
    max-width: 100%;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* 左側圖片 */
.login-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.login-image img {
    max-width: 100%;
    height: auto;
}

/* 右側表單 */
.login-form-area {
    flex: 1;
    padding: 50px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 說明文字 */
.desc {
    font-size: 15px;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* input 區塊 */
.form-group {
    margin-bottom: 18px;
}

input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 15px;
    transition: 0.25s;
}

/* input focus */
input:focus {
    outline: none;
    border-color: #3aa3d1;
    box-shadow: 0 0 0 3px rgba(58,163,209,0.25);
}

/* 按鈕共用 */
.btn-primary {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #3aa3d1;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

/* hover 動畫 */
.btn-primary:hover {
    background: #2d8bb5;
    transform: translateY(-2px);
}

/* 送出按鈕 spacing */
.btn-submit {
    margin-bottom: 15px;
}

/* footer */
.footer {
    margin-top: 30px;
    text-align: center;
    font-size: 13px;
    color: gray;
}

/* footer link */
.footer a {
    color: #3aa3d1;
    font-weight: 700;
}

.button-row {
    display: flex;
    justify-content: center; /* 置中 */
    gap: 15px;               /* 按鈕間距 */
    margin-top: 15px;
}

.divider_msg {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 12px 0;
  color: #fa0505;
  font-size: 12px;
}

.divider_msg::before,
.divider_msg::after {
  content: "";
  flex: 1;
  height: 1px;
  font-size: 12px;
  border-radius: 999px;
}

.success {
    color: #28a745;
}

.error {
    color: #dc3545;
}

.no-line::before,
.no-line::after {
    display: none;
}

.divider {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 12px 0;
  color: #6b6b6b;
  font-size: 12px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #9aa0a6;
  border-radius: 999px;
}

.divider::before {
  margin-right: 16px;
}

.divider::after {
  margin-left: 16px;
}

/* RWD 手機版 */
@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
    }

    .login-image {
        padding: 25px;
    }

    .login-form-area {
        padding: 35px;
    }
}

.btn-social {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  padding-left: 20px;
  padding-right: 20px;
  background: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-social img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-social span {
  flex: 1;
  text-align: center;
}

.btn-social:hover {
  background: #f6f6f6;
  border-color: #bfbfbf;
}

.btn-social:active {
  transform: scale(0.98);
}

.button-group {
    display: flex;
    gap: 5px;   /* 按鈕間距 */
}