/* Body styles scoped to login page (body has .ops-login class) */
body.ops-login {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: #f4f7f8;
    font-family: "Segoe UI", sans-serif;
    color: #1a1a1a;
}

.ops-card {
    width: min(94vw, 360px);
    padding: 24px;
    border: 1px solid #eef0f1;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.06), 0 6px 18px rgba(0,0,0,.05);
    text-align: center;
}

h1 {
    margin: 0 0 8px;
    font-size: clamp(22px, 6vw, 26px);
    font-weight: 700;
}

p {
    margin: 0;
    color: #4b5a75;
    font-size: 14px;
}

.ops-form {
    margin: 18px 0 14px;
    display: grid;
    gap: 8px;
    text-align: left;
}

label {
    color: #4b5a75;
    font-size: 13px;
    font-weight: 600;
}

input {
    width: 95%;
    min-height: 34px;
    border: 1px solid #eef0f1;
    border-radius: 8px;
    padding: 6px 9px;
    color: #1a1a1a;
    font-family: "Segoe UI", sans-serif;
    font-size: 14px;
}

.ops-password-field {
    position: relative;
    display: flex;
    align-items: center;
}

#ops-username,
.ops-password-field input {
    width: 95%;
}

.ops-password-field input {
    padding-right: 40px;
}

.ops-password-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    min-height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #4b5a75;
    font-size: 14px;
    line-height: 1;
    transform: translateY(-50%);
}

.ops-password-toggle:hover:not(:disabled) {
    background: #eef0f1;
    color: #1c2f35;
    transform: translateY(-50%);
}

.ops-password-toggle:focus-visible {
    outline: 2px solid rgba(11, 87, 208, .32);
    outline-offset: 1px;
}

.ops-password-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

input:focus {
    border-color: #0b57d0;
    outline: 2px solid rgba(11, 87, 208, .16);
}

button {
    display: inline-block;
    min-height: 34px;
    margin-top: 6px;
    border: 1px solid #0b57d0;
    border-radius: 8px;
    background: #0b57d0;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color .18s ease, transform .18s ease, background .18s ease;
}

button:hover:not(:disabled) {
    transform: translateY(-1px);
    background: #1c2f35;
    border-color: #1c2f35;
}

button:disabled {
    cursor: wait;
    opacity: .72;
}

/* Signing-in pulsing dots */
@keyframes ops-pulse {
    0%, 20% { opacity: .4; }
    50% { opacity: 1; }
    80%, 100% { opacity: .4; }
}

.ops-signing-dots span {
    display: inline-block;
    animation: ops-pulse 1.2s ease-in-out infinite;
}

.ops-signing-dots span:nth-child(2) { animation-delay: 0.2s; }
.ops-signing-dots span:nth-child(3) { animation-delay: 0.4s; }

a {
    display: inline-block;
    color: #0b57d0;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color .18s ease, transform .18s ease;
}

a:hover {
    text-decoration: none;
    transform: translateY(-1px);
    color: #1c2f35;
}

.ops-message {
    min-height: 18px;
    color: #4b5a75;
    font-size: 13px;
    text-align: center;
}

.ops-message.error {
    color: #b42318;
}

.ops-hidden {
    display: none;
}

.ops-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 10px 1rem;
    background: #fff;
    border-bottom: 1px solid #eef0f1;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    color: #1a1a1a;
    font-family: "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 600;
    box-sizing: border-box;
}

.ops-header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.ops-header-logo img {
    height: 45px;
    width: auto;
}

.ops-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ops-header-link {
    color: #4b5a75;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s ease;
}

.ops-header-link:hover {
    color: #0b57d0;
    transform: none;
}

.ops-header-user {
    color: #1a1a1a;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.ops-header-logout {
    min-height: 28px;
    margin: 0;
    padding: 0 12px;
    font-size: 13px;
    border-color: #0b57d0;
    background: #0b57d0;
}

.ops-header-logout:hover {
    background: #1c2f35;
    border-color: #1c2f35;
}

@media (max-width: 600px) {
    .ops-header {
        padding: 8px 12px;
    }

    .ops-header-actions {
        gap: 10px;
    }

    .ops-header-link {
        font-size: 12px;
    }

    .ops-header-user {
        display: none;
    }
}

@media (max-width: 480px) {
    body {
        padding: 12px;
    }

    .ops-card {
        width: 100%;
        padding: 18px;
        border-radius: 12px;
    }

    .ops-form {
        gap: 7px;
    }

    input,
    button {
        min-height: 32px;
        font-size: 13px;
    }

    .ops-header-actions {
        gap: 8px;
    }

    .ops-header-link {
        font-size: 11px;
    }
}
