/* 用途：還原已批准的ATAS深色綠紫登入外觀；執行：僅admin/login.html載入。
   注意：選擇器限定登入頁，不修改驗證、權限、其他管理頁或資料。
   基礎表單樣式參考 https://uiverse.io/Praashoo7/brave-moose-56；綠紫外框依使用者提供樣式。
   MIT License — Copyright - 2026 Praashoo7 (Prashant)
   Permission is hereby granted, free of charge, to any person obtaining a copy
   of this software and associated documentation files (the "Software"), to deal
   in the Software without restriction, including without limitation the rights
   to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
   copies of the Software, and to permit persons to whom the Software is
   furnished to do so, subject to the following conditions:
   The above copyright notice and this permission notice shall be included in
   all copies or substantial portions of the Software.
   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
   AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
   OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
   THE SOFTWARE. */
body.atas-login {
  background: #101114;
  color: #fff;
  font-family: system-ui, "Microsoft JhengHei", sans-serif;
}
.atas-login #container {
  background: transparent;
  border: 0;
  min-width: 0;
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  margin: 0;
}
.atas-login #main { width: 100%; align-items: center; }
.atas-login #content-start { min-width: 0; width: 100%; padding: 48px 24px; }
.atas-login #content { width: 100%; max-width: 380px; margin: auto; padding: 0; }
.atas-login #content-main { float: none; width: auto; }
.atas-login .atas-login-edge {
  padding: 2px;
  border-radius: 26px;
  background: linear-gradient(163deg, #00ff75 0%, #3700ff 100%);
  transition: box-shadow .3s ease;
}
.atas-login .atas-login-edge:hover { box-shadow: 0 0 30px 1px rgba(0,255,117,.3); }
.atas-login .atas-login-inner { border-radius: 24px; background: #171717; transition: transform .2s ease; }
.atas-login .atas-login-edge:hover .atas-login-inner { transform: scale(.98); }
.atas-login .atas-login-content { display: flex; flex-direction: column; gap: 10px; padding: 36px 30px 26px; }
.atas-login .atas-login-brand { text-align: center; font-size: 36px; font-weight: 700; letter-spacing: 5px; margin: 0 0 8px; }
.atas-login #atas-login-heading { color: #fff; text-align: center; font-size: 21px; font-weight: 500; line-height: 1.5; margin: 0; }
.atas-login .atas-login-subtitle { text-align: center; color: #a7a7af; font-size: 13px; margin: 4px 0 22px; }
.atas-login .atas-login-label { display: block; color: #d3d3d3; font-size: 14px; margin: 2px 0 11px 8px; }
.atas-login .atas-login-field {
  display: flex; align-items: center; gap: 12px; min-height: 50px;
  padding: 12px 16px; margin-bottom: 20px; border-radius: 25px;
  background: #171717; color: #a7a7af; box-shadow: inset 2px 5px 10px #050505;
}
.atas-login .atas-login-field:focus-within { outline: 2px solid #64f6ac; outline-offset: 3px; }
.atas-login .atas-login-field svg { width: 18px; height: 18px; flex-shrink: 0; }
.atas-login .atas-login-field input {
  box-sizing: border-box; width: 100%; min-width: 0; padding: 0;
  background: transparent; border: 0; border-radius: 0;
  color: #d3d3d3; font: inherit; font-size: 16px;
}
.atas-login .atas-login-field input:focus { outline: none; }
.atas-login .atas-login-field input:-webkit-autofill {
  -webkit-text-fill-color: #d3d3d3;
  box-shadow: 0 0 0 1000px #171717 inset;
  caret-color: #d3d3d3;
}
.atas-login #login-form { margin: 0; }
.atas-login .atas-login-button {
  box-sizing: border-box; min-height: 48px; width: 100%; padding: 12px 20px;
  margin-top: 6px; border: 1px solid #393939; border-radius: 8px;
  background: #252525; color: #fff; font: inherit; font-size: 16px;
  cursor: pointer; transition: background .25s ease, border-color .25s ease;
}
.atas-login .atas-login-button:hover { background: #080808; border-color: #5befa0; }
.atas-login .atas-login-button:focus-visible { outline: 2px solid #64f6ac; outline-offset: 4px; }
.atas-login .atas-login-footer { text-align: center; color: #a7a7af; font-size: 12px; margin: 18px 0 0; }
/* 用途：長錯誤完整換行，伺服器訊息保持可見，不以顏色單獨表示失敗。 */
.atas-login .errornote, .atas-login ul.errorlist {
  background: #301b20; color: #ffc6ce; border: 1px solid #8e4654;
  border-radius: 8px; padding: 12px; margin: 0 0 14px;
  font-size: 14px; line-height: 1.6; overflow-wrap: anywhere;
}
.atas-login ul.errorlist { list-style: none; }
.atas-login ul.errorlist li { font-size: inherit; margin: 0; }
.atas-login .atas-password-reset { text-align: right; margin: 0 0 14px; }
.atas-login .atas-password-reset a { color: #8ef7bb; }
.atas-login .skip-to-content-link:focus { background: #171717; color: #8ef7bb; }
@media(max-width: 400px) {
  .atas-login #content-start { padding: 24px 12px; }
  .atas-login .atas-login-content { padding: 30px 22px 24px; }
}
@media(prefers-reduced-motion: reduce) {
  .atas-login .atas-login-edge, .atas-login .atas-login-inner, .atas-login .atas-login-button { transition: none; }
  .atas-login .atas-login-edge:hover .atas-login-inner { transform: none; }
}
