/* ==========================================================================
   Wits Class — Portfolio Access Gate
   Separate namespaced stylesheet. Does not touch base template CSS.
   ========================================================================== */

.wc-gate-lock {
    overflow: hidden !important;
    height: 100vh !important;
}

.wc-gate {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at 15% 20%, rgba(237, 61, 41, 0.25), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(247, 148, 30, 0.22), transparent 45%),
        linear-gradient(135deg, #0d1b2a 0%, #16263b 55%, #10202f 100%);
    font-family: 'Roboto', Arial, sans-serif;
    opacity: 1;
    transition: opacity 0.35s ease;
}

.wc-gate.wc-gate--hidden {
    opacity: 0;
    pointer-events: none;
}

.wc-gate__card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 18px;
    padding: 40px 34px 32px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
    text-align: center;
    transform: translateY(0);
    animation: wc-gate-rise 0.5s ease;
}

@keyframes wc-gate-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wc-gate__logo {
    max-width: 170px;
    margin: 0 auto 18px;
    display: block;
}

.wc-gate__title {
    font-size: 21px;
    font-weight: 700;
    color: #16263b;
    margin: 0 0 6px;
    line-height: 1.3;
}

.wc-gate__subtitle {
    font-size: 14px;
    color: #6b7684;
    margin: 0 0 26px;
    line-height: 1.5;
}

.wc-gate__field {
    text-align: left;
    margin-bottom: 16px;
}

.wc-gate__field label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #16263b;
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

.wc-gate__field input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    font-size: 15px;
    border: 1.5px solid #e1e4e9;
    border-radius: 10px;
    outline: none;
    color: #16263b;
    background: #f9fafb;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.wc-gate__field input:focus {
    border-color: #ed3d29;
    background: #ffffff;
}

.wc-gate__field input.wc-gate__input--error {
    border-color: #d63333;
    background: #fff5f5;
}

.wc-gate__error {
    font-size: 12.5px;
    color: #d63333;
    margin-top: 5px;
    min-height: 16px;
    text-align: left;
}

.wc-gate__submit {
    width: 100%;
    border: none;
    cursor: pointer;
    padding: 13px 18px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #fff;
    border-radius: 10px;
    background: linear-gradient(90deg, #c1272d 0%, #ed3d29 45%, #f7941e 100%);
    box-shadow: 0 10px 22px rgba(237, 61, 41, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    margin-top: 6px;
}

.wc-gate__submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(237, 61, 41, 0.38);
}

.wc-gate__submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.wc-gate__status {
    font-size: 13px;
    margin-top: 14px;
    min-height: 18px;
}

.wc-gate__status--error {
    color: #d63333;
}

.wc-gate__status--ok {
    color: #1f9d55;
}

.wc-gate__footnote {
    font-size: 11.5px;
    color: #9aa3ad;
    margin-top: 18px;
    line-height: 1.5;
}

@media (max-width: 420px) {
    .wc-gate__card {
        padding: 32px 22px 26px;
        border-radius: 14px;
    }
}
