/* VisiChecks public reception flow */
.vc-checkin {
    background:
        radial-gradient(circle at 10% 10%, rgba(13, 100, 51, .08), transparent 26rem),
        #f7f9f8;
}

.vc-checkin-grid {
    align-items: flex-start;
}

.vc-scan-panel,
.vc-visitor-form {
    width: 100%;
    border: 1px solid #e2e8e5;
    border-radius: 20px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 16px 44px rgba(13, 38, 24, .08);
}

.vc-scan-panel {
    position: sticky;
    top: 24px;
    margin-inline: auto;
    padding: 22px;
}

.vc-visitor-form {
    padding: 26px;
}

.vc-scan-heading,
.vc-form-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
}

.vc-scan-heading h2,
.vc-form-heading h1 {
    margin: 0 0 5px;
    color: #10271b;
}

.vc-scan-heading h2 {
    font-size: 21px;
    font-weight: 800;
}

.vc-scan-heading p,
.vc-form-heading p,
.vc-camera-help {
    margin: 0;
    color: #65736b;
    font-size: 13px;
    line-height: 1.55;
}

.vc-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    border-radius: 10px;
    background: #0d6433;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.vc-scan-panel .camera,
.vc-scan-panel .output,
.vc-scan-panel .mrz_area {
    overflow: hidden;
    border-radius: 14px;
}

.vc-scan-panel .camera,
.vc-scan-panel .output {
    min-height: 240px;
    background: #eaf0ed;
}

.vc-scan-panel video,
.vc-scan-panel .output img {
    display: block;
    width: 100%;
    min-height: 240px;
    object-fit: cover;
}

.vc-camera-help {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f1f6f3;
}

.vc-camera-help i {
    margin-top: 3px;
    color: #0d6433;
}

.vc-scan-panel .camera_btns {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.vc-scan-panel .camera_btns button {
    flex: 1;
}

.vc-visitor-form label {
    color: #24342c;
}

.vc-visitor-form input,
.vc-visitor-form select,
.vc-visitor-form textarea {
    min-height: 48px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.vc-visitor-form textarea {
    min-height: 104px;
}

.vc-visitor-form input:focus,
.vc-visitor-form select:focus,
.vc-visitor-form textarea:focus {
    border-color: #0d6433 !important;
    box-shadow: 0 0 0 3px rgba(13, 100, 51, .12);
}

.vc-visitor-form .required::after {
    content: " *";
    color: #c73939;
}

html[dir="rtl"] .vc-visitor-form,
html[dir="rtl"] .vc-scan-panel {
    text-align: right;
}

@media (max-width: 1023.98px) {
    .vc-checkin-grid {
        gap: 22px;
    }

    .vc-scan-panel {
        position: static;
        max-width: none;
    }
}

@media (max-width: 767.98px) {
    .vc-checkin-grid {
        margin-top: 18px !important;
    }

    .vc-scan-panel,
    .vc-visitor-form {
        padding: 18px;
        border-radius: 15px;
    }

    .vc-scan-panel .camera,
    .vc-scan-panel .output,
    .vc-scan-panel video,
    .vc-scan-panel .output img {
        min-height: 190px;
    }

    .vc-form-heading h1 {
        font-size: 24px;
    }
}

@media (max-width: 479.98px) {
    .vc-scan-panel .camera_btns,
    .vc-visitor-form > .flex:last-child {
        flex-direction: column-reverse;
    }

    .vc-scan-panel .camera_btns button,
    .vc-visitor-form > .flex:last-child > * {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* Secure web login */
.vc-login-page {
    min-height: calc(100vh - 96px);
    display: flex;
    align-items: center;
    padding: 42px 0 64px;
    background:
        radial-gradient(circle at 12% 14%, rgba(15, 106, 58, .12), transparent 27rem),
        radial-gradient(circle at 90% 86%, rgba(234, 157, 38, .1), transparent 24rem),
        #f5f8f6;
}

.vc-login-container { width: 100%; }

.vc-login-shell {
    width: min(100%, 1000px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
    overflow: hidden;
    border: 1px solid #dfe8e2;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(19, 48, 33, .13);
}

.vc-login-form-panel { padding: 46px 52px; }

.vc-login-heading { margin-bottom: 30px; }

.vc-login-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #0f6a3a;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.vc-login-heading h1 {
    margin: 0 0 10px;
    color: #14291e;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.12;
}

.vc-login-heading p {
    margin: 0;
    color: #69776f;
    font-size: 14px;
    line-height: 1.65;
}

.vc-login-field { margin-bottom: 20px; }

.vc-login-field > label {
    display: block;
    margin-bottom: 8px;
    color: #293b32;
    font-size: 13px;
    font-weight: 700;
}

.vc-login-field > label span { color: #c43e3e; }

.vc-input-icon { position: relative; }

.vc-input-icon > i {
    position: absolute;
    inset-inline-start: 16px;
    top: 50%;
    z-index: 1;
    color: #7b8a82;
    transform: translateY(-50%);
}

.vc-input-icon input {
    width: 100%;
    min-height: 50px;
    padding: 12px 48px;
    color: #14291e;
    border: 1px solid #ccd9d1;
    border-radius: 11px;
    background: #fff;
    outline: 0;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.vc-input-icon input:focus {
    border-color: #0f6a3a;
    box-shadow: 0 0 0 4px rgba(15, 106, 58, .1);
}

.vc-input-icon input.is-invalid {
    border-color: #c43e3e;
    box-shadow: 0 0 0 3px rgba(196, 62, 62, .08);
}

.vc-password-toggle {
    position: absolute;
    inset-inline-end: 7px;
    top: 50%;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5f7067;
    border: 0;
    border-radius: 8px;
    background: transparent;
    transform: translateY(-50%);
}

.vc-password-toggle:hover,
.vc-password-toggle:focus { color: #0f6a3a; background: #eef5f1; outline: 0; }

.vc-field-error {
    margin: 6px 0 0;
    color: #b22f2f;
    font-size: 12px;
}

.vc-login-options {
    margin: 4px 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 13px;
}

.vc-login-options a { color: #0f6a3a; font-weight: 700; }
.vc-login-options a:hover { text-decoration: underline; }

.vc-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #45564d;
    cursor: pointer;
}

.vc-checkbox input { width: 17px; height: 17px; accent-color: #0f6a3a; }

.vc-login-submit {
    width: 100%;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #fff;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #0f6a3a, #09512b);
    box-shadow: 0 12px 24px rgba(15, 106, 58, .22);
    font-size: 15px;
    font-weight: 800;
    transition: transform .18s ease, box-shadow .18s ease;
}

.vc-login-submit:hover,
.vc-login-submit:focus { transform: translateY(-1px); box-shadow: 0 15px 28px rgba(15, 106, 58, .27); }

html[dir="rtl"] .vc-login-submit i { transform: rotate(180deg); }

.vc-login-visual {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 610px;
    padding: 46px 40px;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(7, 51, 27, .08), rgba(7, 51, 27, .95)),
        url('../images/login/login.png') center / cover no-repeat,
        #0b5a30;
}

.vc-login-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, .08), transparent 45%);
    pointer-events: none;
}

.vc-login-visual-content { position: relative; z-index: 1; }

.vc-login-visual-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 14px;
    background: rgba(255, 255, 255, .13);
    backdrop-filter: blur(8px);
    font-size: 20px;
}

.vc-login-eyebrow {
    margin: 0 0 9px;
    color: #b9e5ca;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.vc-login-visual h2 { margin: 0 0 13px; color: #fff; font-size: 29px; line-height: 1.18; }
.vc-login-visual p { color: rgba(255, 255, 255, .82); line-height: 1.65; }
.vc-login-visual ul { margin: 24px 0 0; padding: 0; list-style: none; }
.vc-login-visual li { display: flex; gap: 10px; margin-top: 12px; font-size: 13px; }
.vc-login-visual li i { margin-top: 4px; color: #78d59b; }

.vc-demo-logins { margin-top: 30px; }
.vc-demo-divider { display: flex; align-items: center; gap: 12px; color: #809087; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.vc-demo-divider::before,
.vc-demo-divider::after { content: ""; height: 1px; flex: 1; background: #e3eae6; }
.vc-demo-logins > p { margin: 12px 0; color: #65746c; font-size: 12px; text-align: center; }
.vc-demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.vc-demo-button { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 10px; border: 1px solid #dfe8e2; border-radius: 9px; background: #fff; color: #35473e; font-size: 11px; font-weight: 700; }
.vc-demo-button:hover,
.vc-demo-button:focus { border-color: #a8c9b5; background: #f2f7f4; outline: 0; }
.vc-demo-button--admin i { color: #2472be; }
.vc-demo-button--reception i { color: #7c4ab4; }
.vc-demo-button--employee i { color: #bc6a31; }

@media (max-width: 899.98px) {
    .vc-login-page { align-items: flex-start; padding-top: 28px; }
    .vc-login-shell { grid-template-columns: 1fr; max-width: 620px; }
    .vc-login-visual { min-height: 340px; order: -1; }
}

@media (max-width: 575.98px) {
    .vc-login-page { padding: 18px 0 42px; }
    .vc-login-shell { border-radius: 17px; }
    .vc-login-form-panel { padding: 28px 20px; }
    .vc-login-visual { display: none; }
    .vc-login-options { align-items: flex-start; flex-direction: column; gap: 10px; }
    .vc-demo-grid { grid-template-columns: 1fr; }
}

.vc-auth-shell {
    width: min(100%, 540px);
    margin: 0 auto;
    padding: 44px 48px;
    border: 1px solid #dfe8e2;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 22px 62px rgba(19, 48, 33, .12);
}

.vc-auth-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    color: #0f6a3a;
    border-radius: 15px;
    background: #eaf4ee;
    font-size: 21px;
}

.vc-auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 22px;
    padding: 13px 14px;
    color: #185c35;
    border: 1px solid #bfdfca;
    border-radius: 10px;
    background: #edf8f1;
    font-size: 13px;
    line-height: 1.5;
}

.vc-auth-alert i { margin-top: 3px; }

.vc-auth-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    color: #526159;
    font-size: 13px;
    font-weight: 700;
}

.vc-auth-back:hover { color: #0f6a3a; }
html[dir="rtl"] .vc-auth-back i { transform: rotate(180deg); }

@media (max-width: 575.98px) {
    .vc-auth-shell { padding: 30px 20px; border-radius: 17px; }
}
