/* index.css
   只保留 index login 專屬樣式
*/

.login-wrap {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.login-card {
    width: 100%;
    max-width: 400px;
    margin: auto;
    background: var(--surface);
    border: 1px solid #e4ebf4;
    border-radius: var(--radius);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.login-card-stripe {
    height: 4px;
    background: linear-gradient(90deg, #1565c0 0%, #1976d2 45%, #ff6b35 100%);
}

.login-card-body {
    padding: 26px 26px 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-card-heading {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eef3f9;
}

.login-card-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-card-title i {
    color: var(--secondary);
}

.login-card-sub {
    font-size: 0.74rem;
    color: var(--muted);
    line-height: 1.5;
}

.login-submit-btn {
    width: 100%;
    justify-content: center;
    font-size: 0.88rem;
    padding: 11px 20px;
    touch-action: manipulation;
}

.login-card-note {
    padding: 0 26px 20px;
    font-size: 0.68rem;
    color: #9aacbe;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.58;
}

.login-card-note i {
    font-size: 0.65rem;
    margin-top: 2px;
    flex-shrink: 0;
}

#staffInput,
.login-card .form-control {
    font-size: 16px !important;
    touch-action: manipulation;
}

.login-error {
    display: none;
    color: #b91c1c;
    font-size: 14px;
    margin: 8px 0 12px;
}

@media (max-width: 576px) {
    .login-card-body {
        padding: 22px 20px 16px;
    }

    .login-card-note {
        padding: 0 20px 18px;
    }
}