.login-section {
    display: grid;
    place-items: center;
}

.login-card {
    width: min(90vw, 600px);
    background: var(--blur-d);
    color: var(--text-light);
    backdrop-filter: blur(5px);
}

.login-head {
    display: grid;
    place-items: center;
    gap: 8px;
    margin-bottom: 6px
}

.login-avatar {
    width: 150px;
    height: 150px;
    display: grid;
    place-items: center;
    object-fit: contain;
}

.login-title {
    margin: 0;
    font-size: 26px;
    text-align: center;
    color: #bfe3ff
}

.login-subtitle {
    text-align: center;
    font-size: 14px;
    color: rgba(230, 241, 255, .72)
}

.field-hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: rgba(230, 241, 255, .6);
    transition: color 0.3s ease;
}

.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.input-group label {
    font-size: 14px;
    color: var(--c-cyan);
    font-weight: 500;
}


/* 浮動標籤 + 霓虹動態邊框輸入匡 */
.finput {
    position: relative;
    margin: 12px 0 6px
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(230, 241, 255, .6);
    font-size: 16px;
    pointer-events: none;
    transition: color .2s;
}

.finput:focus-within .input-icon {
    color: var(--c-cyan);
}

.field-input {
    width: 100%;
    padding: 14px 44px 14px 44px;
    border-radius: 12px;
    border: 1px solid rgba(100, 147, 250, .5);
    background: rgba(255, 255, 255, .05);
    color: var(--text-light);
    outline: none;
    font-size: 15px;
    caret-color: var(--c-cyan);
    transition: background .25s, border-color .25s, box-shadow .25s, transform .08s;
}

.field-input::placeholder {
    color: rgba(230, 241, 255, .55);
    transition: color .2s;
}

.finput:focus-within .field-input {
    background: rgba(100, 147, 250, .12);
    border-color: var(--c-cyan);
    box-shadow: 0 0 0 3px rgba(0, 217, 255, .16), 0 0 22px rgba(0, 217, 255, .12);
    transform: translateY(-1px);
}

.finput:focus-within .field-input::placeholder {
    color: rgba(230, 241, 255, .75);
}

/* 修正 Chrome / WebKit 自動填入（避免變白或黃） */
.field-input:-webkit-autofill,
.field-input:-webkit-autofill:hover,
.field-input:-webkit-autofill:focus,
.field-input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--text-light);
    caret-color: var(--c-cyan);
    /* 覆蓋預設淡黃背景：用巨大 inset box-shadow 填色 */
    -webkit-box-shadow: 0 0 0 1000px rgba(100, 147, 250, .12) inset, 0 0 0 1px rgba(0, 217, 255, .35);
    box-shadow: 0 0 0 1000px rgba(100, 147, 250, .12) inset, 0 0 0 1px rgba(0, 217, 255, .35);
    border: 1px solid rgba(0, 217, 255, .55) !important;
    background: transparent !important;
    transition: background-color 9999s ease-in-out 0s;
}

/* 聚焦後保持一致 */
.finput:focus-within .field-input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px rgba(100, 147, 250, .18) inset, 0 0 0 1px rgba(0, 217, 255, .55), 0 0 18px rgba(0, 217, 255, .25);
    box-shadow: 0 0 0 1000px rgba(100, 147, 250, .18) inset, 0 0 0 1px rgba(0, 217, 255, .55), 0 0 18px rgba(0, 217, 255, .25);
}

/* 立即載入時若已被填入（返回上一頁等） */
.field-input:-webkit-autofill::first-line {
    font-size: 15px;
}

/* Firefox（無黃底但保險處理） */
.field-input:-moz-autofill {
    box-shadow: 0 0 0 1000px rgba(100, 147, 250, .12) inset;
    border: 1px solid rgba(0, 217, 255, .45);
    color: var(--text-light);
}

/* 顯示密碼 */
.toggle-pw {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: rgba(230, 241, 255, .8);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    font-size: 16px;
}

.toggle-pw:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--c-cyan)
}

.row-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    color: rgba(230, 241, 255, .85);
    margin-top: 2px
}

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none
}

.checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--c-cyan)
}


/* OR 分隔線 */
.or-sep {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin: 16px 0 12px
}

.or-sep span {
    font-size: 12px;
    color: rgba(230, 241, 255, .65);
    letter-spacing: .5px
}

.or-sep::before,
.or-sep::after {
    content: '';
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(100, 147, 250, .35), rgba(0, 217, 255, .5), transparent);
    box-shadow: 0 0 10px rgba(0, 217, 255, .15)
}

