/* Authentication/Login — face panel styles (replaces inline style attributes) */

.fcms-face-requesting-text {
    color: #475569;
    font-size: 14px;
}

.fcms-face-cam-instructions {
    display: none;
    background: rgba(3, 105, 161, 0.92);
    color: #fff;
    padding: 10px 12px;
    font-size: 13px;
    border-radius: 6px 6px 0 0;
    text-align: center;
}

.fcms-face-cam-instructions.is-visible {
    display: block;
}

.fcms-face-video {
    filter: brightness(1.06) contrast(1.05);
}

.fcms-face-overlay-canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

.fcms-face-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 10;
}

.fcms-face-loading-overlay.is-hidden {
    display: none;
}

.fcms-face-progress-label {
    color: #475569;
    font-weight: 500;
}

.fcms-face-progress-pct {
    color: #0369a1;
    font-weight: 600;
}

.fcms-face-result-title {
    font-size: 20px;
    font-weight: 600;
    color: #0f172b;
    margin: 0 0 8px;
}

.fcms-face-result-text {
    color: #475569;
    margin: 0;
}

.fcms-face-result-text--spaced {
    margin: 0 0 16px;
}

.fcms-face-login-message {
    display: none;
    margin-top: 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    padding: 10px;
    border-radius: 8px;
}

.fcms-face-login-message.is-visible {
    display: block;
}

.fcms-face-idle {
    text-align: center;
    padding: 8px 0 0;
}

.fcms-face-idle__icon {
    width: 128px;
    height: 128px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: linear-gradient(to bottom right, #e0f2fe, #cffafe);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fcms-face-idle__icon svg {
    width: 64px;
    height: 64px;
    color: #0369a1;
}

.fcms-face-idle p {
    font-size: 14px;
    color: #475569;
    margin: 0 0 8px;
}

.fcms-face-idle .fcms-face-hint {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 24px;
}

.fcms-face-requesting {
    text-align: center;
    padding: 24px 0;
}

.fcms-login-spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    border: 3px solid rgba(3, 105, 161, 0.25);
    border-top-color: #0369a1;
    border-radius: 50%;
    animation: dfl360-face-spin 0.7s linear infinite;
}

@keyframes dfl360-face-spin {
    to { transform: rotate(360deg); }
}

.fcms-face-video-wrap {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 4px solid #0369a1;
    box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.15);
    background: #0f172a;
}

.fcms-face-video-wrap video {
    display: block;
    width: 100%;
    height: auto;
}

.fcms-face-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.fcms-face-corner {
    position: absolute;
    width: 32px;
    height: 32px;
    border-color: #38bdf8;
    border-style: solid;
}

.fcms-face-corner--tl { top: 16px; left: 16px; border-width: 4px 0 0 4px; }
.fcms-face-corner--tr { top: 16px; right: 16px; border-width: 4px 4px 0 0; }
.fcms-face-corner--bl { bottom: 16px; left: 16px; border-width: 0 0 4px 4px; }
.fcms-face-corner--br { bottom: 16px; right: 16px; border-width: 0 4px 4px 0; }

.fcms-face-scan-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, transparent, #38bdf8, transparent);
    animation: dfl360-face-scan 2s linear infinite;
}

@keyframes dfl360-face-scan {
    0% { top: 0; opacity: 0.9; }
    100% { top: calc(100% - 4px); opacity: 0.9; }
}

.fcms-face-progress {
    margin-top: 16px;
}

.fcms-face-progress__row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
}

.fcms-face-progress__bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.fcms-face-progress__fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(to right, #0284c7, #06b6d4);
    width: 0%;
    transition: width 0.3s ease;
}

.fcms-face-success,
.fcms-face-failed {
    text-align: center;
    padding: 16px 0;
}

.fcms-face-success__icon,
.fcms-face-failed__icon {
    width: 128px;
    height: 128px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fcms-face-success__icon {
    background: linear-gradient(to bottom right, #d1fae5, #bbf7d0);
}

.fcms-face-success__icon svg {
    width: 64px;
    height: 64px;
    color: #059669;
}

.fcms-face-failed__icon {
    background: linear-gradient(to bottom right, #fee2e2, #fecaca);
}

.fcms-face-failed__icon svg {
    width: 64px;
    height: 64px;
    color: #dc2626;
}

.fcms-login-btn-outline {
    width: 100%;
    height: 55px;
    margin-top: 12px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    color: #334155;
    background: #fff;
    border: 1px solid #d2deeb;
    border-radius: 9px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.fcms-login-btn-outline:hover {
    background: #f8fafc;
    border-color: #b8c9dc;
}
