.gate-page-bg {
    font-family: "Poppins", sans-serif;
    background: var(--brand-soft);
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 36px 16px;
    box-sizing: border-box;
}

.gate-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(var(--brand-rgb), 0.12);
    padding: 40px 36px 32px;
    width: 100%;
    max-width: 440px;
    position: relative;
    overflow: hidden;
}

.gate-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--brand), var(--brand-dark), var(--brand));
}

.gate-logo {
    text-align: center;
    margin-bottom: 20px;
}

.gate-logo-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-shadow: 0 4px 20px rgba(var(--brand-rgb), 0.15);
    transition: transform 0.3s ease;
}

.gate-logo-circle:hover {
    transform: scale(1.05);
}

.gate-logo-circle img {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gate-title {
    color: var(--brand);
    text-align: center;
    margin-bottom: 8px;
    font-size: 1.4rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 14px;
}

.gate-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--brand-dark));
    border-radius: 2px;
}

.gate-subtitle {
    text-align: center;
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 24px;
    font-weight: 300;
}

.gate-alert {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.82rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.gate-alert i {
    flex-shrink: 0;
    font-size: 1rem;
    margin-top: 0.1rem;
}

.gate-alert-success {
    background: var(--brand-soft);
    color: var(--brand);
    border-left: 4px solid var(--brand);
}

.gate-alert-error {
    background: #fee2e2;
    color: #c62828;
    border-left: 4px solid var(--brand);
}

.gate-group {
    margin-bottom: 20px;
}

.gate-label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    font-size: 0.78rem;
    color: #333;
    letter-spacing: 0.03em;
}

.gate-input-wrap {
    position: relative;
}

.gate-input-wrap i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand);
    font-size: 0.85rem;
    pointer-events: none;
    opacity: 0.6;
}

.gate-input {
    width: 100%;
    padding: 12px 12px 12px 38px;
    border: 2px solid var(--brand-border);
    border-radius: 10px;
    font-size: 0.88rem;
    font-family: "Poppins", sans-serif;
    background: #fefafa;
    color: #333;
    transition:
        border-color 0.3s,
        box-shadow 0.3s;
    box-sizing: border-box;
    outline: none;
}

.gate-input:focus {
    border-color: var(--brand);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(var(--brand-rgb), 0.08);
}

.gate-input::placeholder {
    color: #aaa;
    font-weight: 300;
}

.gate-helper {
    font-size: 0.7rem;
    color: #888;
    margin-top: 6px;
    font-weight: 300;
}

.gate-btn {
    width: 100%;
    padding: 13px 16px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: "Poppins", sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(var(--brand-rgb), 0.3);
    transition: all 0.3s;
}

.gate-btn:hover {
    background: linear-gradient(135deg, var(--brand-dark), #b00f17);
    box-shadow: 0 6px 24px rgba(var(--brand-rgb), 0.4);
    transform: translateY(-2px);
}

.gate-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(var(--brand-rgb), 0.2);
}

.gate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.gate-otp-section {
    animation: gate-fadeIn 0.5s ease;
}

.gate-divider {
    height: 1px;
    background: var(--brand-border);
    margin: 1.5rem 0;
    position: relative;
}

.gate-divider span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 0 0.7rem;
    font-size: 0.7rem;
    color: #888;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
}

.gate-resend-row {
    text-align: center;
    margin-top: 16px;
    font-size: 0.8rem;
    color: #666;
}

.gate-resend-link {
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}

.gate-resend-link:hover {
    text-decoration: underline;
    color: var(--brand-dark);
}

.gate-bottombar {
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--brand-dark), var(--brand));
    margin: 28px -36px -32px;
    border-radius: 0 0 16px 16px;
}

.gate-security-note {
    margin-top: 16px;
    font-size: 0.68rem;
    color: #999;
    text-align: center;
    line-height: 1.6;
}

.gate-security-note i {
    color: var(--brand);
    margin-right: 4px;
}

@keyframes gate-fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .gate-card {
        padding: 28px 18px 22px;
    }
    .gate-bottombar {
        margin: 20px -18px -22px;
    }
    .gate-title {
        font-size: 1.15rem;
    }
    .gate-logo-circle {
        width: 65px;
        height: 65px;
        padding: 10px;
    }
}

.gate-footer-note {
    text-align: center;
    margin-top: 18px;
    font-size: 0.78rem;
    color: #666;
}

.gate-footer-note a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
}

.gate-footer-note a:hover {
    text-decoration: underline;
}

.gate-back-btn {
    margin-top: 16px;
    text-align: center;
}

.gate-back-btn-secondary {
    width: 100%;
    padding: 13px 16px;
    background: transparent;
    color: var(--brand);
    border: 2px solid var(--brand);
    border-radius: 10px;
    font-family: "Inter", sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s;
    box-sizing: border-box;
}

.gate-back-btn-secondary:hover {
    background: var(--brand-soft);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(var(--brand-rgb), 0.15);
    text-decoration: none;
}

.gate-back-btn-secondary:active {
    transform: translateY(0);
}

.gate-back-btn-secondary i {
    color: var(--brand);
    font-size: 0.95rem;
}

body .label-icon {
    color: var(--brand);
    margin-right: 4px;
}

body .btn-icon {
    margin-right: 4px;
}

body .is-hidden {
    display: none;
}

body .gate-input.is-complete {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(var(--brand-rgb), 0.08);
}
