/* ═══ GreenTrust® — Access Lock Screen ═══
   Full-viewport gate shown BEFORE any dashboard chrome.
   Used for: unverified email, pending admin approval, rejected registration.
   Deliberately shares the login-page visual vocabulary (forest video
   backdrop + glass card) so users never land inside the dashboard UI
   before being cleared. */

.gt-lock {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: safe center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    overflow-y: auto;
    font-family: var(--font-body, 'Nunito', sans-serif);
}

.gt-lock__video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    z-index: 0;
}

/* Forest darkening veil — heavier than the login page to signal "gate" */
.gt-lock__veil {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(14, 29, 8, 0.55) 0%, rgba(14, 29, 8, 0.88) 100%),
        linear-gradient(180deg, rgba(14, 29, 8, 0.35) 0%, rgba(14, 29, 8, 0.75) 100%);
    z-index: 1;
    pointer-events: none;
}

.gt-lock__card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 460px;
    margin: auto;
    padding: 40px 36px 32px;
    background: rgba(245, 248, 243, 0.97);
    border: 1px solid rgba(37, 61, 28, 0.10);
    border-radius: 18px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 30px 80px -20px rgba(14, 29, 8, 0.55),
        0 10px 30px -12px rgba(14, 29, 8, 0.35);
    backdrop-filter: blur(18px) saturate(1.15);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
    text-align: center;
    animation: gt-lock-card-in 0.55s cubic-bezier(0.22, 0.8, 0.35, 1) both;
}

@keyframes gt-lock-card-in {
    from { opacity: 0; transform: translateY(14px) scale(0.985); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.gt-lock__logo {
    display: inline-block;
    max-width: 76px;
    height: auto;
    margin-bottom: 18px;
    opacity: 0.95;
}

/* Envelope icon well — no animated rings, just a still emblem */
.gt-lock__halo {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
}

.gt-lock__halo-core {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(145deg, #466140 0%, #253d1c 100%);
    display: grid;
    place-items: center;
    box-shadow:
        0 10px 24px -8px rgba(37, 61, 28, 0.55),
        0 0 0 1px rgba(37, 61, 28, 0.25) inset;
}

.gt-lock__halo-core svg {
    width: 28px;
    height: 28px;
    color: #f5f8f3;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Typography */
.gt-lock__eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #5c7852;
    margin: 0 0 10px;
}

.gt-lock__title {
    font-family: var(--font-display, 'Nunito', sans-serif);
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: #162b0e;
    margin: 0 0 10px;
    line-height: 1.2;
}

.gt-lock__message {
    font-size: 0.94rem;
    line-height: 1.55;
    color: #466140;
    margin: 0 0 18px;
}

/* Chip row — email + status sit on a single baseline, equal height */
.gt-lock__chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 22px;
}

.gt-lock__email-chip,
.gt-lock__status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 30px;
    padding: 0 14px;
    margin: 0;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    box-sizing: border-box;
    white-space: nowrap;
}

.gt-lock__email-chip {
    background: rgba(92, 120, 82, 0.10);
    border: 1px solid rgba(37, 61, 28, 0.18);
    color: #162b0e;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gt-lock__email-chip svg {
    width: 14px;
    height: 14px;
    color: #5c7852;
    flex: 0 0 auto;
}

.gt-lock__status {
    background: rgba(255, 173, 51, 0.12);
    border: 1px solid transparent;
    color: #8a5a00;
    letter-spacing: 0.02em;
}

.gt-lock__status--pending {
    background: rgba(255, 173, 51, 0.12);
    color: #8a5a00;
}

.gt-lock__status--rejected {
    background: rgba(201, 58, 58, 0.12);
    color: #8b1f1f;
}

.gt-lock__status--approved {
    background: rgba(92, 120, 82, 0.16);
    color: #2e4a27;
}

.gt-lock__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 0 currentColor;
    animation: gt-lock-dot-pulse 1.8s ease-out infinite;
}

@keyframes gt-lock-dot-pulse {
    0%   { box-shadow: 0 0 0 0 currentColor; opacity: 1; }
    70%  { box-shadow: 0 0 0 8px transparent; opacity: 0.6; }
    100% { box-shadow: 0 0 0 0 transparent; opacity: 1; }
}

/* Action stack */
.gt-lock__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 14px;
}

.gt-lock__btn {
    appearance: none;
    border: none;
    border-radius: 10px;
    padding: 12px 18px;
    font-family: inherit;
    font-size: 0.93rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition:
        transform 0.12s ease,
        background 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.gt-lock__btn:active { transform: translateY(1px); }
.gt-lock__btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.gt-lock__btn--primary {
    background: linear-gradient(180deg, #34522a 0%, #253d1c 100%);
    color: #f5f8f3;
    box-shadow:
        0 10px 22px -10px rgba(37, 61, 28, 0.6),
        0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.gt-lock__btn--primary:hover:not(:disabled) {
    background: linear-gradient(180deg, #466140 0%, #2e4a27 100%);
    box-shadow:
        0 14px 28px -10px rgba(37, 61, 28, 0.65),
        0 1px 0 rgba(255, 255, 255, 0.18) inset;
}

.gt-lock__btn--secondary {
    background: transparent;
    color: #253d1c;
    border: 1.5px solid rgba(37, 61, 28, 0.35);
}

.gt-lock__btn--secondary:hover:not(:disabled) {
    background: rgba(92, 120, 82, 0.08);
    border-color: #5c7852;
}

.gt-lock__btn--ghost {
    background: transparent;
    color: #466140;
    border: none;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    font-weight: 600;
    padding: 8px 10px;
    font-size: 0.86rem;
}

.gt-lock__btn--ghost:hover:not(:disabled) {
    color: #162b0e;
    text-decoration-thickness: 1.5px;
}

/* Feedback line */
.gt-lock__feedback {
    min-height: 1.2em;
    font-size: 0.8rem;
    line-height: 1.35;
    margin: 10px 0 0;
    color: #466140;
}

.gt-lock__feedback--error { color: #8b1f1f; }
.gt-lock__feedback--ok    { color: #2e4a27; }

/* Footer */
.gt-lock__footer {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid rgba(37, 61, 28, 0.10);
    font-size: 0.78rem;
    color: #6b8762;
    line-height: 1.5;
}

.gt-lock__footer a {
    color: #2e4a27;
    text-decoration: none;
    font-weight: 700;
}

.gt-lock__footer a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 420px) {
    .gt-lock__card { padding: 32px 24px 26px; border-radius: 14px; }
    .gt-lock__title { font-size: 1.35rem; }
    .gt-lock__halo { width: 84px; height: 84px; margin-bottom: 16px; }
    .gt-lock__halo-core { width: 56px; height: 56px; }
}

/* Honour reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .gt-lock__card,
    .gt-lock__halo::before,
    .gt-lock__halo::after,
    .gt-lock__dot {
        animation: none;
    }
}
